PdfOptions.DashboardPage 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
Uses one dashboard-sized page in fit mode, or paginates with the workbook paper size and printable area in print mode.
Syntax
public string? DashboardPage { get; init; }
Examples
Pass an initialized control and an existing dashboard. Apply a coordinated theme and export the current reporting context as a PDF.
using TXTextControl.TXSheetControl.Server;
async Task ExportDashboard(ServerSheetControl control, Dashboard dashboard)
{
await dashboard.ApplyThemeAsync("dark-1");
await control.SaveAsync("performance.pdf", StreamType.PDF, new SaveOptions {
Pdf = new PdfOptions {
DashboardId = dashboard.Id,
DashboardWidth = 1440,
DashboardPage = "fit"
}
});
}
Remarks
PDF branding follows the configured license and whether the editor or server generates the file. Browser animations and editing controls are omitted. TXWB remains the editable dashboard format.