Opening PDF file

T

Tarablue

Hello All,

I'm new here so please cut me a bit of slack - I may not be in the right
forum, but here goes.

I have a VB6 program from which I can open a large Acrobat PDF file in which
there are various sections. If I use the this code I open up the file at
page 1 and everything is ok.

ShellExecute Me.hwnd, "open", "d:\PFC\catalogue\pdf catalogue\hp.1.pdf",
vbNullString, vbNullString, vbNormalFocus

If I use this code the file opens at the correct page BUT Acrobat opens in
normal mode NOT maximized AND at 122% zoom.

Shell Chr$(34) & "C:\Program Files\Adobe\Acrobat.exe" & Chr$(34) & _
" /A " & Chr$(34) & "page=43=OpenActions" & Chr$(34) & _
Chr$(34) & "view=fitpage=OpenActions" & Chr$(34) & _
Chr$(34) & "c:\program files\PFC\pf10.1.pdf" & Chr$(34)

Can anyone tell me how I can overcome these minor problems.

Thank You
Tarablue
 
G

Graham Mayor

This forum is for Word VBA rather than VB6 which has its own forum(s), and
matters pertaining to Acrobat would be better addressed to the Acrobat
forums.
However a simple solution is to create a shortcut to acrobat.exe in the same
folder with its property set to full screen and use your routine to call the
shortcut instead.
Acrobat 8 here opens in the last used view. If that was maximised then it
opens maximised next time.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top