SaveToStream for Prepared Report

renerene Prague, Czech Republic, Europe
edited 11:21AM in FastReport 3.0
Hi,
is there some possibility how to save prepared report into stream? SaveToFile works well, but it is not strong and clear as to use Streams.
Thanks for all ideas,
Rene

Following code works well -> looking for equivalent stream solution:
  frxReport.PrepareReport(True);
  frxPreview.Show;
  frxPreview.SaveToFile('c:\xxx.fp3');
  ...
  frxPreview.LoadFromFile('c:\xxx.fp3');
  frxPreview.Show;

Comments

  • renerene Prague, Czech Republic, Europe
    edited 11:21AM
    Solved. My problem was that first application used Compressor while second application did not. That's why simple solution is to use PreviewPages:
    frxReport.PrepareReport(True);
    frxPreview.Show;
    frxReport.PreviewPages.SaveToStream(FStream);
    ...
    frxReport.PreviewPages.LoadFromStream(FStream);
    frxReport.ShowPreparedReport;
    frxPreview.Show;
    

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.