# ReportViewer.ExportResult

## Content

# Interface: ExportResult

[ReportViewer](../modules/ReportViewer).ExportResult

Represents the result of an export operation.

**`example`**
```ts
const result: ExportResult = {
	data: new Blob(),
	download: (name) => console.log(name),
};
```

## Table of contents

### Properties

- [data](ReportViewer.ExportResult#data)

### Methods

- [download](ReportViewer.ExportResult#download)

## Properties

### <a id="data" name="data"></a> data

• `Readonly` **data**: `string` \| `Blob`

Gets the exported content.

## Methods

### <a id="download" name="download"></a> download

▸ `Readonly` **download**(`filename?`): `void`

Gets the function that triggers a browser download of the export result.

**`example`**
```ts
const result = {} as ExportResult;
result.download('report.pdf');
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `filename?` | `string` | The optional file name for the download. |

#### Returns

`void`
