Home | About us | Overview | Softwares - Downloads | Evaluate | Order | Support | old forums | Contact | F.A.Q. | Documentations | Search | Sitemap

Opening a pdf on page x

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Opening a pdf on page x

Postby Rocky on Tue Sep 23, 2008 6:14 pm

Opening a pdf:

The viewer always open on page 1.
I would like to display, on opening, the right page right away, say page 5, to avoid the user to see the page change.

I do not want to hide the control, because, I would like a nice transition from the previous pdf that was displayed, to this new one.

Is there a method I can call to suspend the redrawing of the control, until I reach the right page ?
Rocky
 
Posts: 12
Joined: Mon Jun 30, 2008 11:32 pm

Re: Opening a pdf on page x

Postby Loïc on Tue Sep 23, 2008 6:58 pm

Yes ! :D

Code: Select all
GdViewer1.LockControl = True
GdViewer1.CloseImage
GdViewer1.DisplayFromFile ("yourfilepath")
GdViewer1.LockControl = False
GdViewer1.DisplayFrame (5)


Best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 1350
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: Opening a pdf on page x

Postby Rocky on Tue Sep 23, 2008 10:53 pm

All that is working VERY well. Thank you Loic !
Rocky
 
Posts: 12
Joined: Mon Jun 30, 2008 11:32 pm


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 0 guests

cron