| View previous topic :: View next topic |
| Author |
Message |
darkangel Member
Joined: 08 Mar 2004 Posts: 3
|
Posted: 08/03/04 09:29 Post subject: A silly question |
|
|
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. |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 122
|
Posted: 09/03/04 19:35 Post subject: |
|
|
preview.canvas.draw+F1
besides... you can print them on print preview canvas just like on normal printer canvas, isn't that nice? |
|
| Back to top |
|
 |
darkangel Member
Joined: 08 Mar 2004 Posts: 3
|
Posted: 10/03/04 01:11 Post subject: Printer is not currently printing |
|
|
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. |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 122
|
Posted: 10/03/04 06:49 Post subject: |
|
|
| before you draw execute method BeginDoc, and when you end execute EndDoc. |
|
| Back to top |
|
 |
darkangel Member
Joined: 08 Mar 2004 Posts: 3
|
Posted: 10/03/04 07:07 Post subject: Thank you |
|
|
| I got it. Thank you very much! |
|
| Back to top |
|
 |
|