3 Replies Latest reply on Jun 12, 2008 1:47 AM by Bernd Alheit

    Adobe showing a pdf doc on my .Net form without toolbar

    Level 1
      Hi,

      I have a .Net application that needs to show a pdf on a form.
      What happens is that the pdf control is loaded with the pdf document, but the scrollbar and toolbar is removed after the page is shown.
      This is very annyoing when you look at the screen.
      How can i prevent that the toolbar is not shown at all?

      Private PDFControl As new AxAcroPDFLib.AxAcroPDF
      'put onto form and set position and size.

      PDFControl.setShowScrollbars(False) 'hide scrollbars
      PDFControl.setShowToolbar(False) 'hide toolbar
      PDFControl.setCurrentPage(1)
      PDFControl.setLayoutMode("SinglePage")
      PDFControl.LoadFile("C:\somepdfdoc.pdf") 'load filename
      PDFControl.setView("Fit")
      PDFControl.setShowScrollbars(False) 'hide scrollbars
      PDFControl.setShowToolbar(False) 'hide toolbar