Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

tlbtnLastPageClick causes Exception

edited March 2006 in General
I am having an issue where if I use tlbtnNext in the previewer to get to the
last page, everything works fine. If I use the tlbtnLastPage in the
pre-viewer, it blows up with an exception. It is not in the report because
I put breakpoints all in there and it is doing exactly the same thing in my
report no matter which button is pressed. It executes the line:

ppViewer1.LastPage;

executes the code in the report and then gives me an Application Error
before it gets to the line:

sedtPageNumber.Value := ppViewer1.AbsolutePageNo;

Again, if I just use the Next button, it works fine. If I use the next
button to go to the last page and then go to the first page and hit the last
page button, it works fine also. It dies if I use the Last page button
before going to the last page. I have it set to psTwoPass and it is showing
the correct number of pages.

Any ideas?

Mark Greenhaw
OneDomain, Inc.

Comments

This discussion has been closed.