How do I save a prepared report?

edited 1:54PM in FastReport 3.0
How can I save a prepared report? I want to be able to load it again at a later time when the database connection is unavailable.

Ta

Sean

Comments

  • edited 1:54PM
    Sorted it out for myself, use the PreviewPages.

    var stream: TStringStream;
    begin
    frxReport1.PrepareReport();
    stream:= TStringStream.Create('');

    frxReport1.PreviewPages.SaveToStream(stream);

    DemoDatabase.Close;

    stream.Position := 0;
    Memo1.Lines.Text:= stream.DataString;

    stream.Position:= 0;
    frxReport2.PreviewPages.LoadFromStream(stream);
    frxReport2.ShowPreparedReport;

    stream.free;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.