I have very long DataDridView which I need to print.
DataGridView contains header and only one row , but may contains 6 to 180 columns.
I would like to print on only one page in multiple lines (depending on the size of my datagridview).
Does someone, somewhere already has an example of how to do it?
Thanks in advance. Onenew
I haven't looked a Paul's example but there is a thread by Merrion in the VB.NET CodeBank forum that contains classes for printing DataGrid and DataGridView controls.
Thanks, Paul,
I think, it will be a solution if I manage to set the "landscape" orientation, and margins for printing. Is it possible to do this?
Onenew
as for the margins, i didn't use them, but exactly where each printer prints the same location seems to vary from printer to printer, so you may need to provide some method of adjustment
I haven't looked a Paul's example but there is a thread by Merrion in the VB.NET CodeBank forum that contains classes for printing DataGrid and DataGridView controls.
my example is a one off custom print routine, specifically tailored for this situation. merrions dgv printing is a general method + would print this one row + header row over several pages