Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I convert a PrintDocument to a Bitmap?

Status
Not open for further replies.

furjaw

Programmer
Mar 27, 2006
49
US
Visual basic 2005 Express Edition:

I have a PrintDocument:

Private WithEvents mDoc As New PrintDocument()

I would like to convert it to a Bitmap, so that I can write it out to disk as a JPEG.

How do I convert a PrintDocument to a Bitmap?

 
Well. The code you use to print on the graphics canvas of the printdocumnt (printpage event) can also be used to draw on the graphics of a bitmap.

Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top