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.
There is an option to hide the menu bar using the F9 key on the keyboard and Tools bar using the F8 key OR go to View>> Showhide>> Menu bar/Toolbar items. We can hide the menu bar for a specific document by going to the Document Properties>>Initial view>> choose the options that you want to hide.
Press the F9 key for the Menu bar and F8 key for Tools bar to unhide/hide the toolbar items. You can also change the settings from the Adobe Reader' Preferences Edit>Preferences>Full screen>select 'Show Navigation bar'>Click OK.
I believe that you need:
AxAcroPDF1.setPageMode("none")
This turns off thumbnails and bookmarks.
There is a decent reference document located here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With