Skip navigation
Currently Being Moderated

How to open pdf file with command?

Jan 7, 2013 9:38 PM

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: s.pdf


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&Page mode=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.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points