BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDBImage print with printpdf

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
tom_po
Junior Member


Joined: 05 Feb 2006
Posts: 1

PostPosted: Sun Feb 05, 2006 3:51 pm    Post subject: TDBImage print with printpdf Reply with quote



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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.