Home General

Error creating PDF

edited April 2010 in General
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

Comments

This discussion has been closed.