if u r iterating thru all the rows in your datatable using a counter as
do while i < dt.rows.count-1
print contents of dt.rows(i).item("something")
line+=1 ;increment line numbers
if line > sizeofpage then
'cause page break
' exit loop
make sure i is declared globally. this way when the control comes back to
the PrintPage event after the page break, "i" will continue from where it
hope this helps.
> I'm using a datatable and printing all rows in this in a PrintDocument.
> Now I can't figure out how to make this do a page break.
> When using .morepageexists I get all my rows again, though the table is
> created in the PrintPage event.
> How to do this?
> Regards Magnus