Class TTXTExport
Unit
TXTExport
Declaration
type TTXTExport = class(TComponent)
Description
non visual component which provides functionality for exporting of database data to StringList or TXT file
Hierarchy
Overview
Methods
 |
function Execute(DBGrid: TCustomDBGrid): boolean; overload; |
 |
function Execute(Dataset: TDataSet): boolean; overload; |
 |
function Execute(rDBRecView: TrDBRecView): boolean; overload; |
 |
function Execute(TreeView: TCustomTreeView): boolean; overload; |
 |
function Execute(rStringGridEd: TrStringGridEd): boolean; overload; |
 |
procedure ExportLine(const Text: string); |
Properties
 |
property ExportResult: TStrings read FExportResult; |
 |
property ExportStructureOnly: boolean read FExportStructureOnly write FExportStructureOnly; |
 |
property ExportAllAsText: boolean read FExportAllAsText write FExportAllAsText; |
 |
property ExportFile: string read FExportFile write FExportFile; |
 |
property TextApostrophe: string read FTextApostrophe write FTextApostrophe; |
 |
property FieldSeparator: string read FFieldSeparator write FFieldSeparator; |
 |
property FillChar: Char read FFillChar write FFillChar default ' '; |
 |
property TrimData: boolean read FTrimData write FTrimData default false; |
 |
property ExportFieldName: boolean read FExportFieldName write FExportFieldName default true; |
 |
property RealFieldNamesAsTitle: boolean read FRealFieldNamesAsTitle write FRealFieldNamesAsTitle default false; |
 |
property ExportOnlyVisibleFields: boolean read FExportOnlyVisibleFields write FExportOnlyVisibleFields default true; |
 |
property ExportOnlySelectedRows: boolean read FExportOnlySelectedRows write FExportOnlySelectedRows default false; |
 |
property AppendToFile: boolean read FAppendToFile write FAppendToFile default false; |
 |
property ActionAfter: TActionAfter read FActionAfter write FActionAfter default aaShow; |
 |
property OnBeforeExport: TNotifyEvent read FOnBeforeExport write FOnBeforeExport; |
 |
property OnAfterExport: TNotifyEvent read FOnAfterExport write FOnAfterExport; |
 |
property UseDisableControl: boolean read FUseDisableControl write FUseDisableControl default true; |
 |
property ShowProgressBar: boolean read FShowProgressBar write FShowProgressBar default false; |
 |
property OnProgressEvent: TProgressEvent read FOnProgressEvent write FOnProgressEvent; |
Description
Methods
 |
function Execute(DBGrid: TCustomDBGrid): boolean; overload; |
execute creating export for DBGrid (columns collection is used)
|
 |
function Execute(Dataset: TDataSet): boolean; overload; |
execute creating export for Dataset (fields collection is used)
|
 |
function Execute(rDBRecView: TrDBRecView): boolean; overload; |
execute creating export for one record from rDBRecView (rows/fields collection is used)
|
 |
function Execute(TreeView: TCustomTreeView): boolean; overload; |
execute creating export for TreeView (Items collection is used)
|
 |
function Execute(rStringGridEd: TrStringGridEd): boolean; overload; |
execute creating export for rStringGrid (columns and rows collection is used)
|
 |
procedure ExportLine(const Text: string); |
Export one line of text, used only for user defined export
|
Properties
 |
property ExportResult: TStrings read FExportResult; |
lines with result of exporting
|
 |
property ExportStructureOnly: boolean read FExportStructureOnly write FExportStructureOnly; |
define that only structure (name of fields) will be exported
|
 |
property ExportAllAsText: boolean read FExportAllAsText write FExportAllAsText; |
define that all fields are exported as text field (with apostrophe)
|
 |
property ExportFile: string read FExportFile write FExportFile; |
Defines output file name, if empty file is not saved and use ExportResult
|
 |
property TextApostrophe: string read FTextApostrophe write FTextApostrophe; |
Defines string which is used as apostrophe for string field
|
 |
property FieldSeparator: string read FFieldSeparator write FFieldSeparator; |
Defines string which is used as separator
|
 |
property FillChar: Char read FFillChar write FFillChar default ' '; |
Defines char which is used for extension of string to needed length
|
 |
property TrimData: boolean read FTrimData write FTrimData default false; |
Defines whether exported data is trimmed (spaces and EOL is removed from beginning and end)
|
 |
property ExportFieldName: boolean read FExportFieldName write FExportFieldName default true; |
Defines whether firts exported line contains name of Fields
|
 |
property RealFieldNamesAsTitle: boolean read FRealFieldNamesAsTitle write FRealFieldNamesAsTitle default false; |
Defines whether firts exported line contains real names of Fields instead of Captions
|
 |
property ExportOnlyVisibleFields: boolean read FExportOnlyVisibleFields write FExportOnlyVisibleFields default true; |
Defines whether visible columns/fields or all columns/fields is exported
|
 |
property ExportOnlySelectedRows: boolean read FExportOnlySelectedRows write FExportOnlySelectedRows default false; |
Defines whether selected rows from DBGrid is exported
|
 |
property AppendToFile: boolean read FAppendToFile write FAppendToFile default false; |
define whether output is appended to existing file (used only for TXT format)
|
 |
property ActionAfter: TActionAfter read FActionAfter write FActionAfter default aaShow; |
Defines action after exporting (None, Show, Print)
|
 |
property OnBeforeExport: TNotifyEvent read FOnBeforeExport write FOnBeforeExport; |
Defines event for user defined action
|
 |
property OnAfterExport: TNotifyEvent read FOnAfterExport write FOnAfterExport; |
Defines event for user defined action
|
 |
property UseDisableControl: boolean read FUseDisableControl write FUseDisableControl default true; |
indicate whether DisableControls is used during dataset scan
|
 |
property ShowProgressBar: boolean read FShowProgressBar write FShowProgressBar default false; |
indicate whether progress bar is shown
|
 |
property OnProgressEvent: TProgressEvent read FOnProgressEvent write FOnProgressEvent; |
Defines event used periodically during exporting of data
|
Generated by PasDoc 0.15.0.
|