Print attached .jpg page by code

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2008
Posts: 1
Reputation: pankaj1980 is an unknown quantity at this point 
Solved Threads: 0
pankaj1980 pankaj1980 is offline Offline
Newbie Poster

Print attached .jpg page by code

 
0
  #1
Nov 20th, 2008
sir,

I'v attached the jpg file. & i want print the same page by coding......
plz help me........
Attached Thumbnails
PrintPaymentReminder.JPG  
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 24
Reputation: kain_mcbride is an unknown quantity at this point 
Solved Threads: 3
kain_mcbride's Avatar
kain_mcbride kain_mcbride is offline Offline
Newbie Poster

Re: Print attached .jpg page by code

 
0
  #2
Nov 20th, 2008
well; depending on where this image is... if it's within your project - as opposed to an external file - you could print it from whatever image control it's in... if it is an external file you could load it into an image type control (image box, picture box, anything that has a .picture attached to it...) or, you might be able to just load the picture directly onto the printbuffer mentioned below (i didn't try it though)

using the printer object in vb6 will let you print this to a print buffer. with Printer.PaintPicture (you can look up the syntax) you can add your picture do the print buffer, when you're ready to print it, use printer.EndDoc.
... there is no bug that enough coffee cannot fix...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 471 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC