Link to home
Start Free TrialLog in
Avatar of tselectro
tselectro

asked on

Open a pdf file and display a specific page in the document

Hi,

I am trying to open a pdf document and automatic display the page number xx.

From the command shell, following syntax do exactly what I want:
acrord32.exe  /A "page=3" c:\pdftest.pdf

In VB/VBA I try to use the ShellExecute api function:
Call ShellExecute(Me.hwnd, "Open", "c:\pdftest.pdf", "page=3", "", SW_SHOWNORMAL)

The api function display the pdf file, but does not "jump" to page 3. Is it possible to use the ShellExecute function, or can this be done in other way?
ASKER CERTIFIED SOLUTION
Avatar of karthika_cts
karthika_cts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tselectro
tselectro

ASKER

Hi, I am using a third part application (Citect SCADA) that has embedded Visual Basic (vba) - .Net is not supported. I need a Visual Basic 6.0/vba solution.
Forced accept.

Computer101
EE Admin