SaveToStream for Prepared Report

renerene Prague, Czech Republic, Europe
edited 8:50PM 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 8:50PM
    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