LoadResult Class
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Server
- Assembly
TXTextControl.TXSheetControl. Api. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. Server
- Also in
TXTextControl.asTXSheetControl. Blazor TXTextControl.TXSheetControl. Api. dll
Detached conversion notices returned after a successful, atomic document replacement.
Syntax
public class LoadResult
Members
Constructors
| Constructor | Description |
|---|---|
| Constructor |
Properties
| Property | Description |
|---|---|
| Warnings |
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;
}