TX Sheet Control

XlsxWarning Class

Class
Namespace
TXTextControl.TXSheetControl.Server
Package
TXTextControl.TXSheetControl.Server from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.Api.dll
Install
dotnet add package TXTextControl.TXSheetControl.Server .NET 10 and later.
Also in
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Api.dll
Implements
IEquatable<XlsxWarning>

Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

Syntax

public class XlsxWarning

Interfaces: IEquatable<XlsxWarning>.

Members

Constructors

ConstructorDescription
Constructor

Properties

PropertyDescription
Code
Message
Part

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;
}

See Also