Print preview dialog control .. problem

  • Thread starter Thread starter Omavlana Omav
  • Start date Start date
O

Omavlana Omav

Hi, I am using print preview dialog for previewing and printing. In the
printpage event I have written code to execute a query and to print the
multiple records that it returns. It always showing one pageful records.
But actual query has more records. How can I manipulate code so as to
capture all the records in different pages?

Pls help me how to use hasmorepages property. I tried this option by
setting it to true. Then the same query being executed again and again
and produced the same page many times.


Regards.
 
You simply draw a pagefull of date. if you have more you set
hasmorepages to true. Then you draw the next page of data.
When there's no more data, you set hasmorepages to false.

You have to keep track of how far into the dataset/pages you are
yourself.

Regards

Odin
 
Back
Top