Community
Participate
Working Groups
Build Identifier: M20110210-1200 The page numbers generated by IRunAndRenderTask is incorrect. If i use IRuntask first and generate rptdocument and IRenderTask to render rptdocument, the page numbers are getting correctly generated. The problem with this approach is i do not want to create an intermediate file as this could affect the performance. Kindly fix or provide an alternate solution. Reproducible: Always Steps to Reproduce: 1. Add Auto text for page number in master page 2. In report viewer, Run -> view report -> as PDF 3. The generated pdf has incorrect page numbers. 4. The same things works when you view report -> in webviewer and then export to pdf.
Please provide detailed information about how you use page number in IRunAndRenderTask. I pull "page number" auto text to masterpage, and it works fine.
Hi Karthik, Does your report use auto layout? or fix layout? It can be found under Property Editor->General->Layout Preference. For Fix layout, both pdf page number should be the same. For auto layout, IRunandRenderTask and iruntask/irendertask use different pagination strategies, so they has different page number, but there still a way to set the pagination in the report to make them export same page count. Could you attach your report? Thanks.