tom_po Junior Member
Joined: 05 Feb 2006 Posts: 1
|
Posted: Sun Feb 05, 2006 3:51 pm Post subject: TDBImage print with printpdf |
|
|
With this code i open a picture (bmp) from my DBisam-Table in my DBImage-Component. The table is "artplan", the fieldname is "image" with the datatype graphic.
| Code: | dbisamquery2.SQL.Text:='select image from artplan where artigo='+quotedstr(trim(artikel.Text));
dbisamquery2.ExecSQL; |
I have a printpdf-Tool, which i already use to print barcode, memo etc., but now with my picture i have a problem to expoert to pdf. I try it with:
| Code: | | printpdf1.draw(100,100, dbimage1.Picture.Bitmap); |
but i get the message that 'TImage' und 'TBitmap' are not compatible.
i already tried this code:
| Code: | | printpdf1.ImageOut(90,900,TImage(dbimage1)); |
its compiling well, but when using i get the message of access violation...
who can help me? |
|