TX Sheet Control

OpenDocumentSpreadsheetSaveOptions.DocumentProperties Property

Property
Namespace
TXTextControl.TXSheetControl.Server
Package
TXTextControl.TXSheetControl.Server as TXTextControl.TXSheetControl.Api.dll from the private NuGet feed or the supplied NuGet folder
Also in
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Api.dll

Export-only document metadata overrides.

Syntax

public DocumentProperties? DocumentProperties { get; init; }

Example

The application owns the licensed control and supplies inputBytes for loading.

using TXTextControl.TXSheetControl.Server;

var options = new OpenDocumentSpreadsheetSaveOptions { DocumentProperties = new() { Title = "Orders" } };
var bytes = await control.SaveAsync(StreamType.OpenDocumentSpreadsheet, new SaveOptions { OpenDocumentSpreadsheet = options });