Gets options controlling the behavior of export modules.
Namespace:
C1.Win.C1PreviewAssembly: C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)
Syntax
C# |
---|
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] [BrowsableAttribute(true)] public ExportOptions ExportOptions { get; } |
Visual Basic |
---|
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ <BrowsableAttribute(True)> _ Public ReadOnly Property ExportOptions As ExportOptions Get |
Examples
The following code uses the ExportOptions property to disable all file formats except for Adobe PDF in the Save As dialog box:
Copy CodeVisual Basic
Dim lp As Integer = 0 While lp < Me.C1PrintPreviewControl1.ExportOptions.Count If Not TypeOf (C1PrintPreviewControl1.ExportOptions(lp).ExportProvider) Is C1.C1Preview.Export.PdfExportProvider Then C1PrintPreviewControl1.ExportOptions(lp).Enabled = False End If lp = lp + 1 End While |
Copy CodeC#
for (int lp = 0; lp < c1PrintPreviewControl1.ExportOptions.Count; lp++) { if (!(c1PrintPreviewControl1.ExportOptions[lp].ExportProvider is PdfExportProvider)) { c1PrintPreviewControl1.ExportOptions[lp].Enabled = false; } } |