lazarus-ccr/components/fpspreadsheet/examples/db_import_export
wp_xxyyzz 5b946b751f fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left).
NOTE: This revision breaks existing code if the worksheet's DefaultRowHeight/DefaultColWidth is changed - value must be in millimeters now. Methods for accessing individual row heiths and column widths are fine, but are marked as deprecated, they use the old units. Optionally a unit parameter can be specified.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4568 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2016-03-18 19:50:40 +00:00
..
db_export_import.lpi fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left). 2016-03-18 19:50:40 +00:00
db_export_import.lpr fpspreadsheet: Complete database import demo. Rename dbexport to db_export_import. Fix biff2 crashing in ReadPane because of duplicate variable FWorksheet. 2014-08-06 08:50:36 +00:00
main.lfm fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left). 2016-03-18 19:50:40 +00:00
main.pas fpspreadsheet: Add units (mm, cm, in, pts, lines/chars) for column width and row heights. Update all demos (some issues left). 2016-03-18 19:50:40 +00:00
readme.txt * fpspreadsheet: db_import_export example: add fpsexport method to existing virtual mode code. 2014-11-08 11:22:06 +00:00

This example program shows how a large database table can be exported to a 
spreadsheet using virtual mode or fpspreadsheet's fpsexport.
It also shows importing a spreadsheet file into a database using virtual mode.

First, run the section 1 to create a dBase file with random data.
Then, in section 2, the dBase file can be converted to any spreadsheet format
supported. Finally, in section 3, another dBase file can be created from a
selected spreadsheet file.

Export using virtual mode has the advantage that this takes less memory for the
spreadsheet contents, but requires some more coding. It is also quite fast.
Exporting using fpsexport needs less code but takes more memory (important for
large amounts of data) and seems slower.

Please note that this example is mainly educational to show a "real-world"
application of virtual mode, but, strictly speaking, virtual mode would not
be absolutely necessary due to the small number of columns.