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
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
rep1.Export(frxjpegexport1);