2 Replies Latest reply on Jan 8, 2013 8:26 AM by Arpit Kapoor

    How to open pdf file with command?

    紫竹林散人 Level 1

      I had trouble to open local pdf file with command by WebBrowser control in IE.(The Acrobat version is 6.0 or 7.0 in my PC)


      The pdf command can be getted in this:



      I open a local pdf file in IE with pdf command "#Page=3&Pagemode=thumbs" firstly, and then I open the same pdf file without pdf command in other IE, but the second times the pdf file in WebBrowser still show page=3, other than page=1.


      That is to say, the pdf command will affect others WebBrowser process after set .





      <body bgColor="#999999" MS_POSITIONING="GridLayout">


          <script language="javascript">

              function Input6()


            var oWebBrowser = document.getElementById('oWebBrowser');

         oWebBrowser.Navigate("D:\\Project\\Data\\PDF\07000001.pdf#Page=3&Pagemode=thumbs", null, null, null, null);




          <form id="MethodTest" method="post" runat="server">

              <OBJECT id="oWebBrowser" style="Z-INDEX: 108; LEFT: 10px; WIDTH: 880px; POSITION: absolute; TOP: 72px; HEIGHT: 600px"

          classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT>

            <PARAM NAME="_Version" VALUE="65536">

            <PARAM NAME="_ExtentX" VALUE="18521">

            <PARAM NAME="_ExtentY" VALUE="23230">

            <PARAM NAME="_StockProps" VALUE="0">



           <fieldset style="Z-INDEX: 103; LEFT: 250px; WIDTH: 275px; POSITION: absolute; TOP: 6px; HEIGHT: 56px; visibility: visible;">

               <legend>Open Pdf</legend>

               <input type="button" name="Open" value="Open" style="LEFT: 110px; WIDTH: 50px; POSITION: absolute; TOP:20px; HEIGHT:25px;" onClick="Input6()" />






      Please help me .Thanks.