Hi all
I have a program which displays Microsoft Access Data using a DataGridView. This data can then be printed out using the DataGridPrinter Class which I got from here
http://www.vbforums.com/showthread.php?t=356115
The problem is that it only ever displays and prints out the first page!. I have been told that this is because the e.HasMorePages value is being set incorrectly
The only reference I can find to e.HasMorePages in the DataGridPrinter class is in this statement which lies within a procedure called GridPrintDocument_PrintPage
Is there any way to make it print out more than one page? 4 pages would be perfect. Can I set up a for loop or something to do that?Code:'\\ If there are more lines to print, set the HasMorePages property to true If _CurrentPrintGridLine < GridRowCount() Then e.HasMorePages = True End If




Reply With Quote