Regenerate Report Question
Hi,
I have a situation where I have previewed a 1 page report and I allow the
user to change
the report margins which will then call ppviewer1.RegenerateReport to
reflect the new
margin settings.
This works well until the top margin starts to push the bottom of the report
onto another page, but there is no second page being produced. I have
checked the
AbsolutePageCount and PageCount values after calling RegenerateReport and
both still say 1 rather than 2.
Should RegenerateReport create a second page or do I have to call something
else?
(I am using RB Pro 7.0)
Any help appreciated.
Luke.
I have a situation where I have previewed a 1 page report and I allow the
user to change
the report margins which will then call ppviewer1.RegenerateReport to
reflect the new
margin settings.
This works well until the top margin starts to push the bottom of the report
onto another page, but there is no second page being produced. I have
checked the
AbsolutePageCount and PageCount values after calling RegenerateReport and
both still say 1 rather than 2.
Should RegenerateReport create a second page or do I have to call something
else?
(I am using RB Pro 7.0)
Any help appreciated.
Luke.
This discussion has been closed.
Comments
checked the code, and RegenerateReport does cause the reset of the
publisher's page cache. Can you send a simple example to
support@digital-metaphors.com that shows the problem?
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
On further investigation I had the reports detail band PrintHeight set to
Static, so
I changed it to Dynamic which seemed to fix the problem.
Thanks for your help,
Luke.