tlbtnLastPageClick causes Exception
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.
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.
This discussion has been closed.
Comments
This is not a known issue. Which version of ReportBuilder/Delphi are you
using? Does this behavior occur for every report your view with the
previewer?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com