images shown in preview but not printing
Hello,
I assign images dynamically to a TfrxPictureView component in the report. They are correctly shown when calling ShowReport, and also when exporting to pdf or bmp. But they just disappear when printing the same report.
I assign the images in the OmBeforePrint event, like this:
procedure TForm.frxReport1BeforePrint(Sender: TfrxReportComponent);
var
bitmap: TBitmap;
begin
if (Sender.Name = 'Picture1') and (Sender is TfrxPictureView) then
begin
pic := TfrxPictureView( Sender );
bitmap := TBitmap.Create();
bitmap.LoadFromFile('file.bmp');
pic.Picture.Assign(bitmap);
bitmap.Free();
end
I use FastReport 3.09
What am I doing wrong? Any ideas?
Thanks
I assign images dynamically to a TfrxPictureView component in the report. They are correctly shown when calling ShowReport, and also when exporting to pdf or bmp. But they just disappear when printing the same report.
I assign the images in the OmBeforePrint event, like this:
procedure TForm.frxReport1BeforePrint(Sender: TfrxReportComponent);
var
bitmap: TBitmap;
begin
if (Sender.Name = 'Picture1') and (Sender is TfrxPictureView) then
begin
pic := TfrxPictureView( Sender );
bitmap := TBitmap.Create();
bitmap.LoadFromFile('file.bmp');
pic.Picture.Assign(bitmap);
bitmap.Free();
end
I use FastReport 3.09
What am I doing wrong? Any ideas?
Thanks
Comments
Thank you