TX Sheet Control

PdfOptions.DashboardId 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

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.

See Also