Multi-page PDF only displays page 1

Discussions about document viewing.
Post Reply
bitberry
Posts: 3
Joined: Tue Jul 06, 2010 12:06 pm

Multi-page PDF only displays page 1

Post by 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?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multi-page PDF only displays page 1

Post by 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

TheBob
Posts: 14
Joined: Wed Oct 08, 2008 11:41 pm

Re: Multi-page PDF only displays page 1

Post by 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

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

Re: Multi-page PDF only displays page 1

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest