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.v18.2.AspNetCore.dll

Declaration

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

Parameters

Type Name Description
Action<DashboardPdfExportOptions> config

A delegate used to customize the DashboardPdfExportOptions object.

Returns

Type Description
DashboardExportOptionBuilder

A reference to this instance after the operation has completed.

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

@(Html.DevExpress().Dashboard("dashboardControl1")
    .Width("100%")
    .Height("100%")
    .OnBeforeRender("onBeforeRender")
    .Extensions(ext => {
        ext.DashboardExport(options => {
            options.PdfExportOptions(pdf => {
                pdf.PageLayout = DevExpress.DashboardCommon.DashboardExportPageLayout.Portrait;
            });
        });
    })
)

See Also