Display Specific Page

Display Specific Page

Forum member · Sep 28, 2007
Hi, Is there a method or setting that I can use to ensure that the user sees a specific page when viewing the report in the browser. For example: If my generated report has 5 pages, can I use a method or setting so that the user sees the 2nd page by default in his broswer.

Re: Display Specific Page

Support · Sep 28, 2007
Hello, It is not possible to set a specific page of the document to display to the user by default. Thanks, ceTe Software Support Team.

Re: Display Specific Page

Forum member · Oct 1, 2007
Thank You for the resopnse. The reason I was trying to display a specific page is because in our web application we are creating dynamic pdf's and displaying them using the Document.DrawToWeb() method. The report shows up fine in the browser but it always shows the 2nd page. I am not able to find out what is causing it to goto page 2. Any help would be appreciated. Thank You.

Re: Display Specific Page

Support · Oct 1, 2007
Hello, There is nothing in our product which causes the PDF to open at 2nd page. This behavior is exibited by Acrobat and our product has no control over that. Thanks, ceTe Software Support Team.

Re: Display Specific Page

Forum member · Apr 23, 2008
I also ran into this same problem. When the merged pdf opens it default to the 2nd page. This is how eventually figured out how to solved it. I added a few javascript statements onto the document after I merged it and before the stream was ready to be rendered by the Draw() method. The JS basically jumps to page 3 and then jumps it back to page 1 using this.pageNum method. C# //Note: Pages are 0 based indexed document.JavaScripts.Add(new ceTe.DynamicPDF.DocumentJavaScript("GotoFirstPage", "this.pageNum=2; this.pageNum=0;")); Based on my testing, it seems to me that it is an IE plugin bug. I was not able to produce this error in the Firefox plugin. It is totally random so when you refresh the browser or download the merged document again it might not happen. There's no reference to it anywhere but on this forum so I hope this will help others who'll encounter this issue. Thanks. Dave C.