> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IExportBatch

> IExportBatch represents the batch being exported in Scanning Station export scripts, exposing its pages, registration properties, result path, and attachments.

## What it does

Represents an exportable batch. The object is represented in scripts with the keyword "this".

## Methods

| **Definition**                                                                                                  | **Description**                                                                                  |
| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| CalcExportedPageCount () : int                                                                                  | Calculates the number of exported pages                                                          |
| NotifyProcessingProgress (itemsProcessed: int, itemsRemained: int)                                              | Displays a notification about the export progress                                                |
| CheckCanceled ()                                                                                                | Check if the user cancelled the export task. If the task is cancelled, an exception is returned. |
| NewPageRect () : [IPageRect](/flexi-capture/scanning-station/shared/scripts/pagerect)                           | Defines a rectangle of the page                                                                  |
| NewImageSavingOptions () : [IImageSavingOptions](/flexi-capture/scanning-station/shared/scripts/saving-options) | Sets image saving options                                                                        |

## Properties

| **Name**               | **Type**                                                                                                      | **Access** | **Description**                                                                                                                 |
| ---------------------- | ------------------------------------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------- |
| ScriptEnvInfo          | string                                                                                                        | Read-only  | Environmental information about conditions on which the script is triggered. In the event of export, this is an export task ID. |
| Result                 | [IScriptResult](/flexi-capture/scanning-station/shared/scripts/script-result)                                 | Read-only  | The result of the script execution                                                                                              |
| Type                   | [IBatchType](/flexi-capture/scanning-station/shared/scripts/batch-type)                                       | Read-only  | The type of the batch                                                                                                           |
| SourceID               | string                                                                                                        | Read-only  | The station identifier                                                                                                          |
| Name                   | string                                                                                                        | Read-only  | The name of the batch                                                                                                           |
| Priority               | int                                                                                                           | Read-only  | The priority of the batch                                                                                                       |
| PageCount              | int                                                                                                           | Read-only  | The total number of pages in the batch                                                                                          |
| Children               | [IExportBatchItems](/flexi-capture/scanning-station/shared/scripts/batch-items)                               | Read-only  | Child items                                                                                                                     |
| RegistrationProperties | [IExportRegistrationProperties](/flexi-capture/scanning-station/shared/scripts/exportregistration-properties) | Read-only  | Registration properties of the batch                                                                                            |
| ResultPath             | string                                                                                                        | Read/write | The resultant export path                                                                                                       |
| ScriptProperties       | [IScriptProperties](/flexi-capture/scanning-station/shared/scripts/script-properties)                         | Read-only  | Script properties                                                                                                               |
| Attachments            | [IExportAttachments](/flexi-capture/scanning-station/shared/scripts/export-attachments)                       | Read-only  | Attachments                                                                                                                     |
