PdfOptions.DashboardId 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
Selects the dashboard to export instead of worksheet pages. Do not combine it with a worksheet sheetId.
Syntax
public string? DashboardId { 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.