5 Replies Latest reply: Jul 6, 2012 3:03 AM by Test Screen Name RSS

    WebBrowser.Document returns null when loading a pdf

    VKP1 Community Member

      In a webbrowser control , even after loading a pdf document , webbrowser.document property is returning null.  When we laod an image, webbrowser.document is having value. How can we the document property of a webbrowser while loading a pdf.

       

      My intention is to get the current page and number of pages for a pdf document with Acrobat Reader installed so that I can I check whether the scrollbar has reached the end of the document

       

      The forum http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/38d8f6b2-d9e1-4d16-9254-b3f1 53bb1f6a/ has suggested to use

       

      WebBrowser1.Document.Body.ScrollRectangle.Height

       

      Any help will be appreciated!!

       

      Thanks,

      VKP1