MartyConnelly
martyconnelly at shaw.ca
Tue Jun 14 10:41:26 CDT 2005
Yup came across this the hard way too. There are still bugs in 7.01, this code below will work in 6.0 to open zoomed pdf document and specific page With 7.0 it won't open the document at all, Adobe page just flashes empty. Code now works with 7.01 However opening a hyperlink locally with parameters like this worked with 6.0 "file:///C:\records management\aircanadacasestudy.pdf?zoom=25" Doesn't work anymore it ignores the open parameters with 7.0 or 7.01 but will open the file properly to initial page. It does work opening file remotely with 7.01 "https://somesite.com/results.pdf?page=1000" Sub RunAdobetest() 'for list of pdf open options see ' http://partners.adobe.com/asn/acrobat/sdk/public/docs/PDFOpenParams.pdf Dim intRet As Integer Dim intPage As Integer Dim strPDF As String Dim strCommandLine As String intPage = 3 strPDF = """C:\records management\aircanadacasestudy.pdf""" strCommandLine = """C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe""" & _ " /A " & "page=" & intPage & "&zoom=50,250,100 " & strPDF Debug.Print strCommandLine intRet = Shell(strCommandLine, vbMaximizedFocus) End Sub Jon Tydda wrote: >Just a heads up on something that I've found the hard way today... > >If you've upgraded Acrobat reader to version 7.0 (which is a LOT faster than >6.0, and doesn't use enarly as much ram), you might notice that when you >click on Hyperlinks in Office Documents they don't always open... if you >update to 7.0.1 that's fixed. > >The update file is here, or you can go to Help/check for updates if you're >not behind some dodgy proxy server like I am here. > >http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=2712 ><http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=2712&fileID=2552> >&fileID=2552 > > >Jon > > >The information in this e-mail is confidential and may also be legally >privileged. The contents are intended for recipient only and are subject >to the legal notice available on request from : webmaster at alcontrol.co.uk >ALcontrol Laboratories is a trading division of ALcontrol UK Limited. >Registered Office: Templeborough House, Mill Close, Rotherham, S60 1BZ. >Registered in England and Wales No 4057291 >_______________________________________________ >dba-Tech mailing list >dba-Tech at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-tech >Website: http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada