5

I am using the "Adobe Acrobat 7.0 Browser Control Type Library 1.0" control to view PDF's in my vb.net application. I want it to show just the PDF with no menus and toolbars. I have used the following code:

AxAcroPDF1.LoadFile("C:\ShippingForm.pdf")
AxAcroPDF1.src = "C:\ShippingForm.pdf"
AxAcroPDF1.setShowToolbar(False)
AxAcroPDF1.setView("fitH")
AxAcroPDF1.setLayoutMode("SinglePage")
AxAcroPDF1.setShowScrollbars(False)

AxAcroPDF1.Show()

I am still getting the Navigation Panel on the left side of the panel. Does anybody have information on which method would disable this or maybe a list of all the methods? A google search didn't get me anywhere.

Kara
  • 6,115
  • 16
  • 50
  • 57
flip66
  • 341
  • 2
  • 5
  • 17

1 Answers1

6

I believe that you need:

AxAcroPDF1.setPageMode("none")

This turns off thumbnails and bookmarks.

There is a decent reference document located here.

Stewbob
  • 16,759
  • 9
  • 63
  • 107