method goToPage() not working for me?

Technical support for Spire.PDFViewer

Moderator: iceblue support

method goToPage() not working for me?

Postby tonschnoer » Sun Feb 28, 2016 4:13 pm

I'm trying to use this code to change current page to page 1 after having loaded a new document.

Code: Select all
 

SetViewerMode(Forms.PdfViewerMode.PdfViewerMode.SinglePage)
[...]
While Not (pdf.IsDocumentLoaded)
            System.Threading.Thread.Sleep(500)
        End While
        pdf.GoToPage(1)


Problem is: it always shows me page 0 on screen, but method getCurrentPage returns 1. :roll:

The Function goToLastPage works flawlessly for me.

Code: Select all
 
SetViewerMode(Forms.PdfViewerMode.PdfViewerMode.SinglePage)
[...]
While Not (pdf.IsDocumentLoaded)
            System.Threading.Thread.Sleep(500)
        End While
        pdf.GoToLastPage()


What I'm doing wrong? Have I to update the drawing on screen after having
moved to page x ?

Regards
Kai
tonschnoer
 
Posts: 2
Joined: Sat Feb 27, 2016 8:22 am

Re: method goToPage() not working for me?

Postby Betsy » Mon Feb 29, 2016 6:37 am

Dear Kai,

Thanks for your inquiry.
I have noticed your issue and posted it to our Dev team. Once there is any progress, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy
 
Posts: 804
Joined: Mon Jan 19, 2015 6:14 am

Re: method goToPage() not working for me?

Postby Betsy » Fri May 13, 2016 3:28 am

Dear kai,

Sorry for long silence.
Now the issue you mentioned has been fixed, welcome to test Spire.PDFViewer Pack Version:2.9.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy
 
Posts: 804
Joined: Mon Jan 19, 2015 6:14 am


Return to Spire.PDFViewer

Who is online

Users browsing this forum: No registered users and 0 guests

cron