Okay, I know a question LIKE this has been asked before, but none of them covered this certain toolbar. After the top and left toolbars are hidden, this little black window shows up near the bottom of the screen which allows the user to print, save, zoom, etc. They can also even open the top and left toolbars back up by clicking the Adobe logo.
好的,我知道一个问题,就像之前曾经问过的那样,但是没有一个问题覆盖了这个特定的工具栏。隐藏顶部和左侧工具栏后,这个小黑色窗口显示在屏幕底部附近,允许用户打印,保存,缩放等。它们甚至可以通过单击Adobe打开顶部和左侧工具栏。商标。
As you can see, at the top of my program I have a toolbar of my own. The way my program works is a user will input data, press the 'Create Report' button and this Report Viewer window will popup. When the user Creates a Report a .PDF file named preview.pdf
is created and that's what the user opens up. If the user doesn't like the report he can hit the X to delete it, or if he likes it he can type a File Name and Press Save. Or he can skip the saving and just print it. When the user saves the file it goes to a place that the software can retrieve at a later time. If the user presses the save button on one of the Adobe toolbars he has the option to save it where they want to. I can't have that.
正如您所看到的,在我的程序顶部,我有一个自己的工具栏。我的程序工作方式是用户输入数据,按“创建报告”按钮,弹出此报告查看器窗口。当用户创建报告时,会创建名为preview.pdf的.PDF文件,这就是用户打开的内容。如果用户不喜欢该报告,他可以点击X删除它,或者如果他喜欢,他可以输入文件名并按保存。或者他可以跳过保存并打印它。当用户保存文件时,它会转到软件稍后可以检索的位置。如果用户按下其中一个Adobe工具栏上的“保存”按钮,则可以选择将其保存到所需位置。我不能那样。
Does anybody know how to disable ALL Adobe toolbars in the .NET PDF Viewer? (And yes, I know that Pressing F8 will bring them back up).
有谁知道如何禁用.NET PDF Viewer中的所有Adobe工具栏? (是的,我知道按F8会让他们恢复原状)。
Here's the code I have now:
这是我现在的代码:
pdf.src = "C:\Users\Ryan\Desktop\HelloWorld.pdf"
pdf.setShowToolbar(False)
pdf.setView("fitH")
pdf.setLayoutMode("SinglePage")
pdf.setShowScrollbars(False)
pdf.setZoom(68)
Here's a screenshot of the Windows Form:
这是Windows窗体的屏幕截图:
1 个解决方案
#1
0
Acrobat viewer has such switchable options. this configuration switchs off all navigation:
Acrobat查看器具有此类可切换选项。此配置会关闭所有导航:
view=FitH
scrollbar = 0
toolbar= 0
statusbar= 0
messages= 0
navpanes= 0
#1
0
Acrobat viewer has such switchable options. this configuration switchs off all navigation:
Acrobat查看器具有此类可切换选项。此配置会关闭所有导航:
view=FitH
scrollbar = 0
toolbar= 0
statusbar= 0
messages= 0
navpanes= 0