Search Results for

    Show / Hide Table of Contents

    Class BaseExportForm

    Base form for all export options dialog forms.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.ComponentModel.Component
    System.Windows.Forms.Control
    System.Windows.Forms.ScrollableControl
    System.Windows.Forms.ContainerControl
    System.Windows.Forms.Form
    BaseForm
    BaseDialogForm
    BaseExportForm
    CsvExportForm
    DbfExportForm
    DxfExportForm
    Excel2007ExportForm
    HpglExportForm
    HTMLExportForm
    ImageExportForm
    JsonExportForm
    LaTeXExportForm
    MHTExportForm
    ODFExportForm
    PDFExportForm
    PowerPoint2007ExportForm
    PPMLExportForm
    PSExportForm
    RTFExportForm
    SVGExportForm
    TextExportForm
    Word2007ExportForm
    XAMLExportForm
    XMLExportForm
    XpsExportForm
    ZplExportForm
    Inherited Members
    BaseDialogForm.btnOk
    BaseDialogForm.btnCancel
    BaseForm.NewDpi
    BaseForm.Storage
    BaseForm.CanSaveRestoreState
    BaseForm.DpiChanged
    BaseForm.GetImage(Int32)
    BaseForm.GetImage(String)
    BaseForm.GetImages()
    BaseForm.SaveState()
    BaseForm.RestoreState()
    BaseForm.OnLoad(EventArgs)
    BaseForm.WndProc(Message)
    BaseForm.UpdateDpiDependencies()
    Namespace: FastReport.Forms
    Assembly: FastReport.dll
    Syntax
    public class BaseExportForm : BaseDialogForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

    Constructors

    BaseExportForm()

    Initializes a new instance of the BaseExportForm class with default settings.

    Declaration
    public BaseExportForm()

    Fields

    cbExportAllTabs

    "Export all tabs" checkbox.

    Declaration
    protected CheckBox cbExportAllTabs
    Field Value
    Type Description
    System.Windows.Forms.CheckBox

    cbOpenAfter

    "Open after export" checkbox.

    Declaration
    protected CheckBox cbOpenAfter
    Field Value
    Type Description
    System.Windows.Forms.CheckBox

    gbPageRange

    "Page Range" groupbox.

    Declaration
    protected GroupBox gbPageRange
    Field Value
    Type Description
    System.Windows.Forms.GroupBox

    lblHint

    "Page Numbers" label.

    Declaration
    protected Label lblHint
    Field Value
    Type Description
    System.Windows.Forms.Label

    panPages

    Pages panel.

    Declaration
    protected PageControlPage panPages
    Field Value
    Type Description
    PageControlPage

    pcPages

    PageControl.

    Declaration
    protected PageControl pcPages
    Field Value
    Type Description
    PageControl

    rbAll

    "All Pages" radiobutton.

    Declaration
    protected RadioButton rbAll
    Field Value
    Type Description
    System.Windows.Forms.RadioButton

    rbCurrent

    "Current Page" radiobutton.

    Declaration
    protected RadioButton rbCurrent
    Field Value
    Type Description
    System.Windows.Forms.RadioButton

    rbNumbers

    "Page Numbers" radiobutton.

    Declaration
    protected RadioButton rbNumbers
    Field Value
    Type Description
    System.Windows.Forms.RadioButton

    tbNumbers

    "Page Numbers" textbox.

    Declaration
    protected TextBox tbNumbers
    Field Value
    Type Description
    System.Windows.Forms.TextBox

    Properties

    Export

    Gets a reference to the currently editing export filter.

    Declaration
    protected ExportBase Export { get; }
    Property Value
    Type Description
    ExportBase

    OpenAfterVisible

    Represents the "Open after export" button visibility.

    Declaration
    public bool OpenAfterVisible { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true if managed resources should be disposed; otherwise, false.

    Overrides
    BaseDialogForm.Dispose(Boolean)

    Done()

    Called when editing is done.

    Declaration
    protected virtual void Done()
    Remarks

    Override this method to pass edited values from the dialog controls to the export filter.

    Examples

    See the example of this method implementation that is used in the ImageExport.

    protected override void Done()
    {
      base.Done();
      ImageExport imageExport = Export as ImageExport;
      imageExport.ImageFormat = (ImageExportFormat)cbxImageFormat.SelectedIndex;
      imageExport.Resolution = (int)udResolution.Value;
      imageExport.JpegQuality = (int)udQuality.Value;
      imageExport.SeparateFiles = cbSeparateFiles.Checked;
    }

    Init(ExportBase)

    Initializes controls with initial values.

    Declaration
    public virtual void Init(ExportBase export)
    Parameters
    Type Name Description
    ExportBase export

    The export filter to edit.

    Remarks

    Override this method to pass values from the export filter to the dialog controls.

    Examples

    See the example of this method implementation that is used in the ImageExport.

    public override void Init(ExportBase export)
    {
      base.Init(export);
      ImageExport imageExport = Export as ImageExport;
      cbxImageFormat.SelectedIndex = (int)imageExport.ImageFormat;
      udResolution.Value = imageExport.Resolution;
      udQuality.Value = imageExport.JpegQuality;
      cbSeparateFiles.Checked = imageExport.SeparateFiles;
    }

    Localize()

    Localizes the dialog controls.

    Declaration
    public override void Localize()
    Overrides
    BaseDialogForm.Localize()
    Remarks

    Use this method to set control's captions specific to the current locale.

    OnFormClosed(FormClosedEventArgs)

    Declaration
    protected override void OnFormClosed(FormClosedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.FormClosedEventArgs e
    Overrides
    BaseForm.OnFormClosed(FormClosedEventArgs)

    OnFormClosing(FormClosingEventArgs)

    Declaration
    protected override void OnFormClosing(FormClosingEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.FormClosingEventArgs e
    Overrides
    System.Windows.Forms.Form.OnFormClosing(System.Windows.Forms.FormClosingEventArgs)

    ShowDialog(ExportBase)

    Declaration
    public bool ShowDialog(ExportBase export)
    Parameters
    Type Name Description
    ExportBase export
    Returns
    Type Description
    System.Boolean

    Extension Methods

    UIUtils.DrawImageAndText(Control, DrawItemEventArgs, Image, String)
    UIUtils.DrawVisualStyleBorder(Control, Graphics, Rectangle)
    UIUtils.Dpi(Control)
    UIUtils.DpiMultiplier(Control)
    UIUtils.FontDpiMultiplier(Control)
    UIUtils.LogicalToDevice(Control, Int32)
    UIUtils.LogicalToDevice(Control, Single)
    UIUtils.LogicalToDevice(Control, Rectangle)
    UIUtils.LogicalToDevice(Control, Point)
    UIUtils.LogicalToDevice(Control, Size)
    UIUtils.LogicalToDevice(Control, Font, Boolean)
    UIUtils.GetImage(Control, Int32)
    UIUtils.GetImage(Control, String)
    UIUtils.GetImages(Control)
    Back to top © 1998-2025 Copyright Fast Reports Inc.