ExportOptionKind Enum
Specifies the export options items which are displayed when an end-user exports a document from its Print Preview.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
#Members
Name | Description |
---|---|
Pdf
|
The Page |
Pdf
|
For internal use. |
Pdf
|
The Pdf |
Pdf
|
|
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
|
Pdf
|
|
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Pdf
|
The Pdf |
Html
|
The Html |
Html
|
The Html |
Html
|
The Html |
Html
|
The Html |
Html
|
The Html |
Html
|
The Page |
Html
|
The Html |
Html
|
The Html |
Html
|
The Html |
Html
|
The Html |
Rtf
|
The Rtf |
Rtf
|
The Page |
Rtf
|
The Formatted |
Docx
|
The Docx |
Docx
|
The Formatted |
Docx
|
The Docx |
Docx
|
The Docx |
Docx
|
The Formatted |
Xls
|
The Xls |
Xls
|
The Page |
Xlsx
|
The Xlsx |
Xlsx
|
The Page |
Text
|
The Text |
Text
|
The Text |
Text
|
The Text |
Text
|
The Text |
Xls
|
The Xl |
Xls
|
For internal use. |
Xls
|
The Xl |
Xls
|
The Xl |
Xls
|
The Xl |
Image
|
The Image |
Image
|
The Page |
Image
|
The Image |
Image
|
The Image |
Image
|
The Image |
Image
|
The Image |
Native
|
The Native |
Xps
|
The Page Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
Xps
|
The Xps Note This is supported only by the DXPrinting for WPF library. |
#Related API Members
The following properties accept/return ExportOptionKind values:
#Remarks
This enumeration’s members are used to specify the export options items, and can be used with the ExportOptions.SetOptionVisibility, ExportOptions.SetOptionsVisibility and ExportOptions.GetOptionVisibility methods.
#Example
This example illustrates how to hide some of the export options from a print preview by using the ExportOptions.SetOptionVisibility and ExportOptions.SetOptionsVisibility methods.
The following code hides some of the PDF-specific export options.
All available export options are listed in the ExportOptionKind
enumeration.
using System.Drawing;
using DevExpress.XtraPrinting;
// ...
private void Form1_Load(object sender, EventArgs e) {
PrintingSystem ps = new PrintingSystem();
documentViewer1.PrintingSystem = ps;
// Draw a simple text brick.
ps.Begin();
ps.Graph.DrawString("Some Text", new RectangleF(0, 20, 200, 20));
ps.End();
// Obtain its Export options.
ExportOptions options = ps.ExportOptions;
// Hide the "Never Embedded Fonts" option, if required.
if(options.GetOptionVisibility(ExportOptionKind.PdfNeverEmbeddedFonts) != false) {
options.SetOptionVisibility(ExportOptionKind.PdfNeverEmbeddedFonts, false);
}
// Hide all Document Options for PDF export.
options.SetOptionsVisibility(new ExportOptionKind[] { ExportOptionKind.PdfDocumentApplication,
ExportOptionKind.PdfDocumentAuthor, ExportOptionKind.PdfDocumentKeywords,
ExportOptionKind.PdfDocumentSubject, ExportOptionKind.PdfDocumentTitle}, false);
}