The requested page is not available for the requested platform. You are viewing the content for Default platform.

DashboardExportOptionBuilder.PdfExportOptions(Action<DashboardPdfExportOptions>) Method

Contains options which define how the dashboard item is exported to the PDF format.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v19.1.AspNetCore.dll


public DashboardExportOptionBuilder PdfExportOptions(
    Action<DashboardPdfExportOptions> config
Public Function PdfExportOptions(
    config As Action(Of DashboardPdfExportOptions)
) As DashboardExportOptionBuilder


Name Type Description
config Action<DashboardPdfExportOptions>

A delegate used to customize the DashboardPdfExportOptions object.


Type Description

A reference to this instance after the operation has completed.


The code sample below shows how to configure PDF export options:

    .Extensions(ext => {
        ext.DashboardExport(options => {
            options.PdfExportOptions(pdf => {
                pdf.PageLayout = DevExpress.DashboardCommon.DashboardExportPageLayout.Portrait;
                pdf.FontInfo.UseCustomFontInfo = true;
                pdf.FontInfo.GdiCharSet = 1;
                pdf.FontInfo.Name = "Arial";
See Also