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.aspx
http://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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With