Loading and saving a finished report |
Top Previous Next |
Loading and saving a finished report can be performed from the preview window. It can also be performed manually using the “TfrxReport.PreviewPages” methods:
function LoadFromFile(const FileName: String; ExceptionIfNotFound: Boolean = False): Boolean; procedure SaveToFile(const FileName: String); procedure LoadFromStream(Stream: TStream); procedure SaveToStream(Stream: TStream);
The parameters have functions similar to the corresponding TfrxReport methods. Files containing finished reports have an “fp3” extension by default.
Example:
Pascal:
frxReport1.PreviewPages.LoadFromFile('c:\1.fp3'); frxReport1.ShowPreparedReport;
C++:
frxReport1->PreviewPages->LoadFromFile("c:\\1.fp3"); frxReport1->ShowPreparedReport();
Note that after the finished report has fully loaded it is previewed by calling the “ShowPreparedReport” method!
|