XlsxWarning.Message Property
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.asTXSheetControl. Server TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Api. dll
- Also in
TXTextControl.asTXSheetControl. Blazor TXTextControl.TXSheetControl. Api. dll
Syntax
public string Message { get; init; }
Property Value
string.
Examples
Load a real XLSX file and build import notices for the application UI. A successful import can still report unsupported features; the array is empty for a clean conversion.
using TXTextControl.TXSheetControl.Server;
async Task<string[]> GetImportNoticesAsync(ServerSheetControl control, byte[] originalDocument)
{
var loaded = await control.LoadAsync(originalDocument, StreamType.SpreadsheetML);
var notices = loaded.Warnings.Select(notice => notice.Message).ToArray();
return notices;
}
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.