Class TSLKExport
Unit
SLKExport
Declaration
type TSLKExport = class(TComponent)
Description
non visual component which provides functionality for exporting of database data to SLK file
Hierarchy
Overview
Methods
Properties
|
property ExportResult: TStrings read FExportResult; |
|
property ExportStructureOnly: boolean read FExportStructureOnly write FExportStructureOnly; |
|
property SLKIdHeaderLine: string read FSLKIdHeaderLine write FSLKIdHeaderLine; |
|
property StartRow: integer read FStartRow write SetStartRow default 1; |
|
property StartCol: integer read FStartCol write SetStartCol default 1; |
|
property ExportFile: string read FExportFile write FExportFile; |
|
property SetFontName: string read FSetFontName write FSetFontName; |
|
property DefaultDateFormat: string read FDefaultDateFormat write FDefaultDateFormat; |
|
property DefaultTimeFormat: string read FDefaultTimeFormat write FDefaultTimeFormat; |
|
property DefaultNumFormat: string read FDefaultNumFormat write FDefaultNumFormat; |
|
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 SetColWidth: boolean read FSetColWidth write FSetColWidth default true; |
|
property MakeSumRow: boolean read FMakeSumRow write FMakeSumRow default false; |
|
property ActionAfter: TActionAfter read FActionAfter write FActionAfter default aaShow; |
|
property OnBeforeExport: TOnExport read FOnBeforeExport write FOnBeforeExport; |
|
property OnAfterExport: TOnExport 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 ExportText(const Text: string; X, Y: integer); |
Exports text to defined cell, used only for user defined export
|
|
procedure ExportNum(Num: extended; X, Y: integer); |
Exports numeric to defined cell, used only for user defined export
|
|
procedure SetCellFormat(CellFormat: slkCellFormat; X, Y: integer); |
Sets format of defined cell, used only for user defined export
|
|
procedure ExportLine(const Text: string); |
Export one already formatted line in SLK format, 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 SLKIdHeaderLine: string read FSLKIdHeaderLine write FSLKIdHeaderLine; |
Defines content of first slk line ID;PWXL;N;E or ID;PCALCOOO32 or similar
|
|
property StartRow: integer read FStartRow write SetStartRow default 1; |
Defines first row for export
|
|
property StartCol: integer read FStartCol write SetStartCol default 1; |
Defines first collumn for export
|
|
property ExportFile: string read FExportFile write FExportFile; |
Defines output file name
|
|
property SetFontName: string read FSetFontName write FSetFontName; |
Defines FontName which will be set in output file
|
|
property DefaultDateFormat: string read FDefaultDateFormat write FDefaultDateFormat; |
Defines default format for date fields
|
|
property DefaultTimeFormat: string read FDefaultTimeFormat write FDefaultTimeFormat; |
Defines default format for time fields
|
|
property DefaultNumFormat: string read FDefaultNumFormat write FDefaultNumFormat; |
Defines default format for numeric fields
|
|
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 SetColWidth: boolean read FSetColWidth write FSetColWidth default true; |
Defines whether output file contains definition of collumn width
|
|
property MakeSumRow: boolean read FMakeSumRow write FMakeSumRow default false; |
Defines whether last exported row contains sum
|
|
property ActionAfter: TActionAfter read FActionAfter write FActionAfter default aaShow; |
Defines action after exporting (None, Show, Print)
|
|
property OnBeforeExport: TOnExport read FOnBeforeExport write FOnBeforeExport; |
Defines event for user defined action
|
|
property OnAfterExport: TOnExport 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.
|