I'm Want to export one report to JPG format and save it into a TMemoryStream.

Hello,

I'm working on FR 4.15 and Delphi XE7.

I'm trying to export one report to JPG format and save it into a TMemoryStream.
I'have followed the same procedure I used to export the same report to JPG format into a TMemoryStream but in the case of TfrxJPGExport my stream result empty.

The report is the same and it works well exporting it to JPG format.
Why the same procedure using TfrxJPGExport result in an empty stream ?

Here is the code :

frxjpegexport1.DefaultPath:='C:\External_ReportV4';
frxjpegexport1.FileName :='AAA.jpg';
frxjpegexport1.SeparateFiles:= true;
rep1.PrepareReport();
rep1.Export(frxjpegexport1);

try
tmpStream.Position :=0;
rep1.SaveToStream(tmpStream);
finally
tmpStream.Free;
end;

Thank you,
Davide

Comments

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.