Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

Opening PDF file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tarablue - 19 Jun 2007 06:58 GMT
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
Graham Mayor - 19 Jun 2007 11:04 GMT
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.

Signature

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Hello All,
>
[quoted text clipped - 20 lines]
> Thank You
> Tarablue
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.