TX Sheet Control

ServerSheetControl.GetXlsxWarningsAsync Method

Method
Namespace
TXTextControl.TXSheetControl.Server
Package
TXTextControl.TXSheetControl.Server as TXTextControl.TXSheetControl.Server.dll from the private NuGet feed or the supplied NuGet folder

Performs an operation on this document without activating another worksheet.

Syntax

public Task<XlsxWarning[]> GetXlsxWarningsAsync(CancellationToken cancellationToken = default)

Parameters

ParameterTypeOptionalDescription
cancellationTokenCancellationTokenYesCancels the pending operation.

Return Value

Task<XlsxWarning[]>. 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<XlsxWarning[]> CreateInvoiceGetXlsxWarningsAsyncAsync(ServerSheetControl control, byte[] originalXlsx)
{
    await control.LoadAsync(originalXlsx, StreamType.SpreadsheetML);
    return await control.GetXlsxWarningsAsync();
}

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.

See Also