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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Windows Form...

Status
Not open for further replies.

bartee

MIS
Mar 20, 2005
147
US
New to developing windows applications. Using VS 2005.

I have a simple webform that I want to give the user the ability to print. I added a the printdocument from the designer and a menustrip for the printing option.

I added the following code in the "PrintToolStripMenuItem_Click" event but it only prints a blank page, not the content displaying in the form.

PrintDocument1.Print()

What's the best way to print the form contents?

Any suggestions, articles, etc are greatly appreciated.

Thanks in advance.
 
Sorry. Meant windows form.

Still having trouble with the coding to print the form, as it's displayed, within the PrintPage event (using e.graphics).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top