# exportReport

## Content

# Function: exportReport()

```ts
function exportReport(exportOptions, isCancelRequested?): Promise<void>;
```

Do export of the report without showing a viewer.

## Parameters

### exportOptions

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

### 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 {exportReport} from './jsViewer.min.js';
exportReport({
  reportID:'Invoice.rdlx',
  exportType: 'Pdf',
  saveAsDialog: true,
  settings : {
   EmbedFonts:'All',
   Title:'MyInvoice'
 }});
```
