Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在使用 C# 显示 pdf 文档。我只想显示 pdf 文档而不显示工具栏。请回答任何人。这是我的代码
axAcroPDF1.setShowToolbar(false); this.axAcroPDF1.LoadFile(@"C:\Users\Chinna\Desktop\Sample.pdf");
setShowtoolbar(fasle) 属性不起作用
我想在我的 pdf 文档中隐藏这个工具栏
你应该先加载文件然后再加载setShowToolbar到假
setShowToolbar
axAcroPDF1.LoadFile(@"C:\Users\Chinna\Desktop\Sample.pdf"); axAcroPDF1.src = @"C:\Users\Chinna\Desktop\Sample.pdf"; axAcroPDF1.setShowToolbar(false); axAcroPDF1.Show();