corelibraries-devexpress-dot-xtraprinting-dot-pdfexportoptions-d965975b.md
Specifies whether to include bookmarks to the exported document.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(true)]
public bool ExportBookmarks { get; set; }
<DefaultValue(True)>
Public Property ExportBookmarks As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to add bookmarks to the exported document; otherwise, false.
|
You can access this nested property as listed below:
| Library | Object Type | Path to ExportBookmarks |
|---|---|---|
| Cross-Platform Class Library | ExportOptions |
.Pdf .ExportBookmarks
| | WinForms Controls | DiagramOptionsExport |
.PdfExportOptions .ExportBookmarks
| | WPF Controls | DiagramControl |
.PdfExportOptions .ExportBookmarks
|
The following code snippet excludes bookmarks from the exported document when exporting a report to PDF:
using DevExpress.XtraPrinting;
// ...
private void simpleButton1_Click(object sender, EventArgs e) {
var report = new XtraReport1();
report.ExportOptions.Pdf.ExportBookmarks = false;
report.ExportToPdf("test.pdf");
}
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