[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.ProcessTemplate

ProcessTemplate Method

ProcessTemplate()

Start to process the template

Declaration
void ProcessTemplate()
Sub ProcessTemplate()

ProcessTemplate(CancellationToken)

Start to process the template with global options and cancellation support.

Declaration
void ProcessTemplate(CancellationToken cancellationToken)
Sub ProcessTemplate(cancellationToken As CancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The token to monitor for cancellation requests.

Remarks

The caller must decide whether to accept the partially expanded template or revert to the previous state. If the caller needs to revert to the previous state, it must serialize the workbook before calling this method, then deserialize the workbook after canceling the operation.

Exceptions
Type Condition
OperationCanceledException

Throws when the CancellationToken was canceled.