A silly question

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

A silly question

Postby darkangel » March 8th, 2004, 9:29 am

I'm new to DelphiArea and would like to post a silly question:
RE:Tprintpreview
I wanna use it to preview my images before printing them out, however, my images are all like bmp,jpg or gif, how can I get them previewed on this component TPrintPreview, as I found it can only load ppv data. Thank you in adance.
darkangel
Member
Member
 
Posts: 3
Joined: March 8th, 2004, 9:25 am

Postby Johnny_Bit » March 9th, 2004, 7:35 pm

preview.canvas.draw+F1

besides... you can print them on print preview canvas just like on normal printer canvas, isn't that nice?
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Printer is not currently printing

Postby darkangel » March 10th, 2004, 1:11 am

Thanks for yr help, I use these codes:
....
bmp.LoadFromFile(opendialog.FileName);
printpreview.Canvas.Draw(0,0,bmp);
.....

however, there is an error as the subject, can you help fix it?
Could you please supply more detailed codes for me? I really apprecaite it.
darkangel
Member
Member
 
Posts: 3
Joined: March 8th, 2004, 9:25 am

Postby Johnny_Bit » March 10th, 2004, 6:49 am

before you draw execute method BeginDoc, and when you end execute EndDoc.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Thank you

Postby darkangel » March 10th, 2004, 7:07 am

I got it. Thank you very much!
darkangel
Member
Member
 
Posts: 3
Joined: March 8th, 2004, 9:25 am


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 40 guests

cron