BI.Persist.pas unit.
Supported Formats
Export data to multiple formats:- CSV - Comma-separated values
- PDF - Portable Document Format
- HTML - Web pages and tables
- XML - Extensible Markup Language
- Excel - Microsoft Excel workbooks
- JSON - JavaScript Object Notation
- Binary - TeeBI native format (.bi, .databi)
BI.Persist.pas for persistence functionality.
Binary Format
TeeBI’s native format for optimal performance.Structure and Data Together
UseTDataItemPersistence for complete data packages (BI.Persist.pas:394-404):
.bidata
Structure Only
UseTPersistence for metadata only (BI.Persist.pas:331-360):
.bi
See BI.Persist.pas:342 for the version constant.
Data Only
UseTDataPersistence for values only (BI.Persist.pas:363-391):
.databi
See BI.Persist.pas:372 for the version constant.
Delayed Loading
Load data on-demand for large files:BI.Persist.pas:1468-1513 for delayed loading implementation.
Stream-Based Export
Export to streams instead of files:BI.Persist.pas:402 for stream save methods.
Compression
Automatically compress data:BI.Persist.pas:276-279 for DataToStream methods.
Store System
Manage data repositories usingTStore (BI.Persist.pas:251-307):
Save to Store
BI.Persist.pas:295-297 for Save methods.
Load from Store
BI.Persist.pas:274-275 for Load methods.
Default Store
BI.Persist.pas:254-259 for default store property.
Folder Storage
Store each column as separate file:BI.Persist.pas:1780-1827 for folder persistence.
Progress Callback
Monitor save/load progress:BI.Persist.pas:46 for TBIProgress type.
Data Definition
Define data sources usingTDataDefinition (BI.Persist.pas:116-217):
BI.Persist.pas:112 for TDataDefinitionKind.
Registry/INI Settings
Cross-platform configuration usingTBIRegistry (BI.Persist.pas:407-426):
BI.Persist.pas:410-424 for registry methods.
Error Handling
BI.Persist.pas:428-433 for EBILoadVersionException.
Performance Tips
Next Steps
Formats
Learn about export formats
Customization
Customize export settings
