Printing from a Datagrid in VB.Net

I'm trying to print the contents of a Datagrid, any ideas on how i do this   I've looked at the other threads to do with this and none of these actually answer the question, or they are in C#.

Thanks


Answer this question

Printing from a Datagrid in VB.Net

  • Steve Cronk

    If your DataGrid has a DataSet under it, you can use CrystalReports to report on the DataSet.  I don't know of any quick and easy ways to print off a DataGrid.  

    If you're familiar with GDI+, then writing things to the printer isn't as bad as you might think.  You could write a MyDataGrid.PrintToPrinter() and share it with us :-) .


  • Jason Rawlins

    Thanks, i managed to find an article which had some source code in it, which is great.

    www.thescarms.com/dotnet/printdataset.asp



  • Printing from a Datagrid in VB.Net