Search Results for

    Show / Hide Table of Contents

    Loading and saving a finished report

    It can be executed from the preview window. This also can be performed manually with the help of 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);
    

    Assignment and the parameters are similar to the corresponding TfrxReport methods. A file, which contains the finished report, has “FP3” extension by default.

    Example:

    Pascal:

    frxReport1.PreviewPages.LoadFromFile('c:\1.fp3');
    frxReport1.ShowPreparedReport;
    

    C++:

    frxReport1->PreviewPages->LoadFromFile("c:\\1.fp3");
    frxReport1->ShowPreparedReport();
    

    Note: after finished report loading is completed, its previewing is executed via the ShowPreparedReport method!

    Back to top © Copyright Fast Reports Inc.