Error creating PDF
I use the following code to load an image from a database.
Signature := TOleGraphic.Create;
Signature.LoadFromStream(Staff.CreateBlobStream(Staff.FieldByName('Signature'),
bmRead));
ppImage2.Picture.Assign(Signature);
Signature.Free;
With ppReport1.DeviceType set to "Printer" it works fine.
With the following settings I get an error "Cannot assign a TOleGraphic to a
TBitmap"
ppReport1.DeviceType := 'PDF';
ppReport1.TextFileName := 'C:\Temp\test.pdf';
ppReport1.Print;
Delphi 2010
ReportBuilder 11.08
Thanks
Signature := TOleGraphic.Create;
Signature.LoadFromStream(Staff.CreateBlobStream(Staff.FieldByName('Signature'),
bmRead));
ppImage2.Picture.Assign(Signature);
Signature.Free;
With ppReport1.DeviceType set to "Printer" it works fine.
With the following settings I get an error "Cannot assign a TOleGraphic to a
TBitmap"
ppReport1.DeviceType := 'PDF';
ppReport1.TextFileName := 'C:\Temp\test.pdf';
ppReport1.Print;
Delphi 2010
ReportBuilder 11.08
Thanks
This discussion has been closed.
Comments
Please send a simple example demonstrating this issue to
support@digital-metaphors.com in .zip format and I'll take a look at it for
you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com