Class BaseExportForm
Base form for all export options dialog forms.
Inheritance
Inherited Members
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
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
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
OnFormClosing(FormClosingEventArgs)
Declaration
protected override void OnFormClosing(FormClosingEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.FormClosingEventArgs | e |
Overrides
ShowDialog(ExportBase)
Declaration
public bool ShowDialog(ExportBase export)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportBase | export |
Returns
| Type | Description |
|---|---|
| System.Boolean |