ExportTool ExecuteCore Method (Document, ExportResult) TIBCO Spotfire 6.0 API Reference
Implement this method to perform tool specific logic. This method will always be executed as a top-level progress operation.

Namespace: Spotfire.Dxp.Application.Tools
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
Syntax

protected abstract IEnumerable<Object> ExecuteCore(
	Document context,
	ExportResult result
)

Return Value

Type: IEnumerable Object 
An enumerable of prompt models that should be prompted on.
Examples

To report progress in this method; perform the job inside a subtask.
using (ProgressService.CurrentProgress.BeginSubtask(
    "Performing export",
    stepCount,
    "Step {0} of {1}"))
{
    // Perform subtask 
    for (int i = 0; i < stepCount; i++)
    {
        // Do something 
        // ...

        ProgressService.CurrentProgress.TryReportProgress();
        ProgressService.CurrentProgress.CheckCancel();
    }
}
See Also