# printReport

## Content

# Function: printReport()

```ts
function printReport(printOptions, isCancelRequested?): Promise<void>;
```

Print the report without showing a viewer.

## Parameters

### printOptions

[`PrintOptions`](../interfaces/PrintOptions)

### isCancelRequested?

() => `boolean`

The function is periodically called with a check to cancel the export task.

## Returns

`Promise`&lt;`void`&gt;

## Example

```javascript
// ESM usage
import { printReport } from './jsViewer.min.js';
printReport({
	reportID: 'AnnualReport.rdlx'
});
```
