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

How to print a datagrid?

Status
Not open for further replies.

andypandyswe

Programmer
May 4, 2005
17
SE
I've a windows form with a datagrid (and a few labels). The datagrid is connected to a datatable in code (no relational databases or adapters are used). Anyone know of an easy way to print it? Or maybe someone knows of an article that explaines it? I read another post that one might make a chrystal report and print that but as I don't even know what exactly chrystal report is or does, I'd rather not have to get into that...

any input is greatly appreciated.

Andreas
 
Printing: Sucks.

The easiest thing I found was to create an HTML document, load it in a webbrowser control, and make the webbrowser control print it for you.

axWebBrowser1.execwb(a few arguments here);

for more details, search "execwb C#" at
-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top