When I select a portion of the Datagridview what is the correct command to print the selection?
I was looking at
Something def a miss there.Code:DataGridViewPrinter.StartPrint(DataGridView, False, True, "List A", "List B")
Printable View
When I select a portion of the Datagridview what is the correct command to print the selection?
I was looking at
Something def a miss there.Code:DataGridViewPrinter.StartPrint(DataGridView, False, True, "List A", "List B")
Not compatible with VS2012 looks like I have to download 2008 to see whats going on.
if you create a new vb2012 project + use Add Existing Item to add the vb2008 Form1 it'll work ok
Nope this example fails, when I load the form and select certain boxes to print and then print preview it shows me all the pages. Thanks for trying.
Also this doesnt work either
Code:PrintDocument1.Print()
Er yeah. That's what it does. I think the idea was to show you how to print a complete DGV so that you could adapt it to your needs. There are no magic formulas for this. MS provides no printing support for the DGV. You gotta do it yourself.Quote:
it shows me all the pages