Print preview dialog control .. problem

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.
 
O

Odin Jensen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top