Database Export pack v1.02
=========================

Overview
--------
Database Export pack contains several components for exporting database data to other formats. 
TKDatasetToText - export data from an active dataset into text file;
TKDatabaseToText - export and import whole database to the text files. Memo and BLOB fields are also supported;
TKDatasetToHTML - save an active dataset as HTML file;
TKDatasetToDBF - save an active dataset into DBase table;
TKDatasetToPrint - print dataset;


Installation
------------
Open package file (kdbexp3.dpk for Delphi 3, kdbexp4.dpk for Delphi 4 and kdbexp5.dpk for Delphi 5) and press "Install" button. 
You will also need to add path to Database Export pack directory into "Library Path"  in environment options (See "Tools" | "Environment Options" menu item, "Library" page).


Distribution
------------
The pack is distributed as freeware. Full source code included. Everybody is granted to make any modifications in source code. If you want that your chugs will be included into next version of the pack - contact authors at delphi@korzh.com.
Feel free to distribute the pack as long as all files are unmodified and kept together.


Brief description
-----------------
***** TKDatasetToText component (kdb2text.pas unit) *****
property Dataset : TDataSet;
specifies the dataset which will be exported into text file. Dataset have to be opened before exporting;

property Delimiter : char; 
specifies the delimiter that will separate field values in the text files. The default value is #9 (TAB character);

procedure Transfer(FileName : string);
save current dataset content (taking into account filters, master/detail relations etc.) into text file;

***** TKDatabaseToText component (kdb2text.pas unit) *****
property DatabaseName : string;
specifies the name of database for importing and exporting;

property WorkDir : string;
specifies the directory where exported or imported files will be stored or loaded;

property Delimiter : char;
specifies the delimiter that will separate field values in the text files. The default value is #9 (TAB character);

procedure ExportDatabase;
save all tables in database specified in DatabaseName property into text files in WorkDir directory. Each table <tablename> will is stored into corresponded <tablename>.txt file. Memo fields are stored into binary file <tablename>.mem;

procedure ImportDatabase;
load data from text files placed in the WorkDir directory to database tables. Each text file <filename>.txt will be loaded into corresponded <filename> table.

procedure ExportTable(TableName : string);
save all data in table with name specified by TableName into text file <TableName>.txt;

procedure ImportTable(TableName : string);
load data from text file <TableName>.txt into table <TableName>;

***** TKDatasetToHTML component (kds2html.pas unit) *****
property Dataset : TDataSet;
specifies the dataset which will be exported into HTML format file. Dataset have to be opened before exporting;

procedure Transfer(FileName : string);
save current dataset content (taking into account filters, master/detail relations etc.) as HTML file;


***** TKDatasetToDBF component (kds2dbf.pas unit) *****
property Dataset : TDataSet;
specifies the dataset which will be exported into DBase table; 

procedure Transfer(FileName : string);
save current dataset content (taking into account filters, master/detail relations etc.) as DBase table;

***** TKDatasetToPrinter component (kds2prn.pas unit) *****
property Dataset : TDataSet;
specifies the dataset which will be printed; 

property Header : TStrings;
property Footer : TStrings;
specify header and footer for dataset report. They will be printed on each page (header at the top and footer on the bottom of page) of report;

property Title : string;
specifies report title. It will be printed one time at the beginning of report;

property LeftMargin : integer;
specifies left margin of report in millimeters;

property TopMargin : integer;
specifies top margin of report in millimeters;

procedure Print;
print the dataset data. All visible fields will be printed.


Copyright Notes
---------------
Database Export pack  Copyright Korzh company, 2000
e-mail:delphi@korzh.com
http://www.korzh.com
