Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Multi-page PDF only displays page 1

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Multi-page PDF only displays page 1

Postby bitberry » Tue Jul 06, 2010 2:01 pm

I try to display a multi-page PDF and have set ContinousViewMode=true. Still, I can only scroll through page 1. I can switch to next page by right-clicking and selecting "Pages / Frames -> Goto next".

Code: Select all
   WideString ws=L"t:\\scuba.pdf";
   WCHAR *sz = ws.c_bstr();

   try
   {
      BSTR bstr = SysAllocString(sz);
      GdViewer1->ContinuousViewMode=true;
      GdViewer1->DisplayFromFile(bstr);
      SysFreeString(bstr);
   }
   catch(...)
   {
      ShowMessage("EXCEPTION");
   }


Am I missing something?

How can I make the control behave like Acrobat Reader so you can scroll through the entire PDF using pgup/pgdn or mouse scroll wheel?
bitberry
 
Posts: 3
Joined: Tue Jul 06, 2010 12:06 pm

Re: Multi-page PDF only displays page 1

Postby Loïc » Tue Jul 06, 2010 2:28 pm

Hi,

ContinousViewMode have no effect on page scrolling behavior. There is no way to move through next/previous page using scroll-bars.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4230
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Multi-page PDF only displays page 1

Postby TheBob » Sat Oct 16, 2010 12:13 am

To view other pages I use

GdViewer.DisplayFiresFrame()
GdViewer.DisplayNextFrame()
GdViewer.DisplayjPreviousFrame()
GdViewer.DisplayLastFrame()

or

GdViewer.DisplayFrame(FrameNumber)

Hope this will help
TheBob
 
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Re: Multi-page PDF only displays page 1

Postby Tom Moran » Sat Oct 16, 2010 3:27 pm

As you've seen you cannot emulate Adobe Readers continuous page mode.

You can, however, use the Mouse Wheel to scroll between pages when you have ContinuousViewMode set to True.

Tom
Tom Moran
 
Posts: 102
Joined: Thu May 24, 2007 9:41 am
Location: Phoenix, Arizona


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest