Back to Devexpress

PdfExportOptions.ExportBookmarks Property

corelibraries-devexpress-dot-xtraprinting-dot-pdfexportoptions-d965975b.md

latest2.9 KB
Original Source

PdfExportOptions.ExportBookmarks Property

Specifies whether to include bookmarks to the exported document.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(true)]
public bool ExportBookmarks { get; set; }
vb
<DefaultValue(True)>
Public Property ExportBookmarks As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to add bookmarks to the exported document; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ExportBookmarks
Cross-Platform Class LibraryExportOptions

.Pdf .ExportBookmarks

| | WinForms Controls | DiagramOptionsExport |

.PdfExportOptions .ExportBookmarks

| | WPF Controls | DiagramControl |

.PdfExportOptions .ExportBookmarks

|

Remarks

The following code snippet excludes bookmarks from the exported document when exporting a report to PDF:

csharp
using DevExpress.XtraPrinting;
// ...
private void simpleButton1_Click(object sender, EventArgs e) {
    var report = new XtraReport1();
    report.ExportOptions.Pdf.ExportBookmarks = false;
    report.ExportToPdf("test.pdf");
}
vb
Imports DevExpress.XtraPrinting
' ...
Private Sub simpleButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim report = New XtraReport1()
    report.ExportOptions.Pdf.ExportBookmarks = False
    report.ExportToPdf("test.pdf")
End Sub

Note

ExportBookmarks is not in effect for the RichEdit suite. Specify the BookmarkOptions.DisplayBookmarksInPdfNavigationPane property value instead.

See Also

PdfExportOptions Class

PdfExportOptions Members

DevExpress.XtraPrinting Namespace