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.
|
2014-08-04 19:46:50 +00:00
|
|
|
|
|
|
|
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
|
2014-08-06 08:50:36 +00:00
|
|
|
supported. Finally, in section 3, another dBase file can be created from a
|
|
|
|
selected spreadsheet file.
|
2014-08-04 19:46:50 +00:00
|
|
|
|
2014-11-08 11:22:06 +00:00
|
|
|
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.
|
|
|
|
|
2014-08-04 19:46:50 +00:00
|
|
|
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.
|
2014-08-06 08:50:36 +00:00
|
|
|
|