I need to add some functionality to be able to print whatever is displayed in datagridview. I tried to use bitmap class but it does not seem to be printing all the rows and columns. It looks like a screenshot and missing some columns and rows. Anybody knows any better way to handle this? Thanks so much.
There are some examples/utilities on CodeProject:
http://www.codeproject.com/KB/printing/PrintingOfDataGridView.aspx
http://www.codeproject.com/KB/printing/GridPrintPreviewSolution.aspx
http://www.codeproject.com/KB/printing/GridPrintPreviewSolution2.aspxhttp://www.codeproject.com/KB/printing/DGVPrinter.aspx
Check this link :
How To Print a Data Grid in C# and .NET
And Have you tried creating local report (rdlc and using Reportviewer)?
This will also help you to create custom reports..
Regards
精彩评论