G
Guest
Hi,
I am trying to build a preview of a document that I am doing...
To do it I am using a ODBCConnection and drawing a table with GDI+
The problem is that I only want 5 rows per page...
so I did this
for int j = 0; j<col;j++
{
currentRow++;
if (currentRow == 5)
{
currentRow = 0;
currentPage++;
e.HasMorePages = true;
}
...........
}
it goes into a loop and when I cancell all the pages have the same
information on it...
How can I solve this?
I am trying to build a preview of a document that I am doing...
To do it I am using a ODBCConnection and drawing a table with GDI+
The problem is that I only want 5 rows per page...
so I did this
for int j = 0; j<col;j++
{
currentRow++;
if (currentRow == 5)
{
currentRow = 0;
currentPage++;
e.HasMorePages = true;
}
...........
}
it goes into a loop and when I cancell all the pages have the same
information on it...
How can I solve this?