ServerSheetControl.GetWarningsAsync Method
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.asTXSheetControl. Server TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Server. dll
Performs an operation on this document without activating another worksheet.
Syntax
public Task<string[]> GetWarningsAsync(CancellationToken cancellationToken = default)
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
cancellationToken | CancellationToken | Yes | Cancels the pending operation. |
Return Value
Task<string[]>. The operation result, returned asynchronously.
Examples
Create and format a complete invoice before using this processing API. Return document bytes, operation metadata or notifications to the application; dispose owned controls after processing.
using TXTextControl.TXSheetControl.Server;
async Task<string[]> CreateInvoiceGetWarningsAsyncAsync(ServerSheetControl control, byte[] originalXlsx)
{
await control.LoadAsync(originalXlsx, StreamType.SpreadsheetML);
return await control.GetWarningsAsync();
}
Remarks
Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.