A newer version of this page is available. Switch to the current version.

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

Declaration

[Flags]
public enum ExportOptionKind : long
<Flags>
Public Enum ExportOptionKind As Long

Members

Name Description
PdfPageRange

The PageByPageExportOptionsBase.PageRange property of the PDF export options.

PdfCompressed

For internal use.

PdfACompatibility

The PdfExportOptions.PdfACompatibility property of the PDF export options.

PdfShowPrintDialogOnOpen

The PdfExportOptions.ShowPrintDialogOnOpen property of the PDF export options.

PdfNeverEmbeddedFonts

The PdfExportOptions.NeverEmbeddedFonts property of the PDF export options.

PdfPasswordSecurityOptions

The PdfExportOptions.PasswordSecurityOptions property of the PDF export options.

PdfSignatureOptions

The PdfExportOptions.SignatureOptions property of the PDF export options.

PdfConvertImagesToJpeg

The PdfExportOptions.ConvertImagesToJpeg property of the PDF export options.

PdfExportEditingFieldsToAcroForms

The PdfExportOptions.ExportEditingFieldsToAcroForms property of the PDF export options.

PdfImageQuality

The PdfExportOptions.ImageQuality property of the PDF export options.

PdfDocumentAuthor

The PdfDocumentOptions.Author property of the PDF export options.

PdfDocumentApplication

The PdfDocumentOptions.Application property of the PDF export options.

PdfDocumentTitle

The PdfDocumentOptions.Title property of the PDF export options.

PdfDocumentSubject

The PdfDocumentOptions.Subject property of the PDF export options.

PdfDocumentKeywords

The PdfDocumentOptions.Keywords property of the PDF export options.

HtmlExportMode

The HtmlExportOptionsBase.ExportMode property of the HTML export options.

HtmlCharacterSet

The HtmlExportOptionsBase.CharacterSet property of the HTML export options.

HtmlTitle

The HtmlExportOptionsBase.Title property of the HTML export options.

HtmlRemoveSecondarySymbols

The HtmlExportOptionsBase.RemoveSecondarySymbols property of the HTML export options.

HtmlEmbedImagesInHTML

The HtmlExportOptionsBase.EmbedImagesInHTML property of the HTML export options.

HtmlPageRange

The PageByPageExportOptionsBase.PageRange property of the HTML export options.

HtmlPageBorderWidth

The HtmlExportOptionsBase.PageBorderWidth property of the HTML export options.

HtmlPageBorderColor

The HtmlExportOptionsBase.PageBorderColor property of the HTML export options.

HtmlTableLayout

The HtmlExportOptionsBase.TableLayout property of the HTML export options.

HtmlExportWatermarks

The HtmlExportOptionsBase.ExportWatermarks property of the HTML export options.

RtfExportMode

The RtfExportOptions.ExportMode property of the RTF export options.

RtfPageRange

The PageByPageExportOptionsBase.PageRange property of the RTF export options.

RtfExportWatermarks

The FormattedTextExportOptions.ExportWatermarks property of the RTF export options.

DocxExportMode

The DocxExportOptions.ExportMode property of the DOCX export options.

DocxPageRange

The FormattedTextExportOptions.PageRange property of the DOCX export options.

DocxTableLayout

The DocxExportOptions.TableLayout property of the DOCX export options.

DocxKeepRowHeight

The DocxExportOptions.KeepRowHeight property of the DOCX export options.

DocxExportWatermarks

The FormattedTextExportOptions.ExportWatermarks property of the DOCX export options.

XlsExportMode

The XlsExportOptions.ExportMode property of the XLS export options.

XlsPageRange

The PageByPageExportOptionsBase.PageRange property of the XLS export options.

XlsxExportMode

The XlsxExportOptions.ExportMode property of the XLSX export options.

XlsxPageRange

The PageByPageExportOptionsBase.PageRange property of the XLSX export options.

TextSeparator

The TextExportOptionsBase.Separator property of the Text export options.

TextEncoding

The TextExportOptionsBase.Encoding property of the Text export options.

TextQuoteStringsWithSeparators

The TextExportOptionsBase.QuoteStringsWithSeparators property of the Text export options.

TextExportMode

The TextExportOptionsBase.TextExportMode property of the Text export options.

XlsShowGridLines

The XlExportOptionsBase.ShowGridLines property of the XLS export options.

XlsUseNativeFormat

For internal use.

The XlExportOptionsBase.ExportHyperlinks property of the XLS export options.

XlsRawDataMode

The XlExportOptionsBase.RawDataMode property of the XLS export options.

XlsSheetName

The XlExportOptionsBase.SheetName property of the XLS export options.

ImageExportMode

The ImageExportOptions.ExportMode property of the Image export options.

ImagePageRange

The PageByPageExportOptionsBase.PageRange property of the Image export options.

ImagePageBorderWidth

The ImageExportOptions.PageBorderWidth property of the Image export options.

ImagePageBorderColor

The ImageExportOptions.PageBorderColor property of the Image export options.

ImageFormat

The ImageExportOptions.Format property of the Image export options.

ImageResolution

The ImageExportOptions.Resolution property of the Image export options.

NativeFormatCompressed

The NativeFormatOptions.Compressed property of the native format Save options.

XpsPageRange

The PageByPageExportOptionsBase.PageRange property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsCompression

The XpsExportOptions.Compression property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentCreator

The XpsDocumentOptions.Creator property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentCategory

The XpsDocumentOptions.Category property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentTitle

The XpsDocumentOptions.Title property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentSubject

The XpsDocumentOptions.Subject property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentKeywords

The XpsDocumentOptions.Keywords property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentVersion

The XpsDocumentOptions.Version property of the XPS export options.

NOTE

This is supported only by the DXPrinting for WPF library.

XpsDocumentDescription

The XpsDocumentOptions.Description property of the XPS export options.

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.

Examples

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);            
}
See Also