[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.ProcessTemplate

ProcessTemplate Method

ProcessTemplate()

Start to process the template with global options.

Declaration
public void ProcessTemplate()
Public Sub ProcessTemplate()
Implements

ProcessTemplate(CancellationToken)

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

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

The token to monitor for cancellation requests.

Implements
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.