|
-
Apr 26th, 2006, 01:15 AM
#1
Thread Starter
New Member
Print Image
Hi there,
what i need to do is print an image from a PictureBox when a button is clicked.
PictureBox is called: pictureBoxFinal
Image needed to print i guess will be: pictureBoxFinal.Image
Button is called: buttonPrint
can anyone give me the code required to do this.
many thanks!
dave
-
Apr 26th, 2006, 01:39 AM
#2
Re: Print Image
I suggest that you download the 2003 101 samples (see my signature for a link) and check out the printing example. It deals with printing text but the principles are exactly the same regardless of what you're printing. In the PrintPage event handler you simply need to substitute DrawImage for DrawString.
-
Apr 26th, 2006, 01:41 AM
#3
Thread Starter
New Member
Re: Print Image
Cheers mate, i'll take a peek!
-
Apr 26th, 2006, 07:03 PM
#4
Thread Starter
New Member
Re: Print Image
Still having trouble with this code, if anyone can help please let me know.
Dave
-
Apr 26th, 2006, 07:29 PM
#5
Re: Print Image
Add a PrintDocument to your form. Double-click it to create a handler for its PrintPage event. That's where the actual printing occurs. When you want to print call the Print method of the PrintDocument.
-
Apr 26th, 2006, 07:34 PM
#6
Thread Starter
New Member
Re: Print Image
Have nothing at the moment mate cos i'm stumped.
I'm a beginner in every sense of the word so need real help. You want to take a look at my actual work?
Thanks!
Dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|