2

Hi i am showing pdf document using C#. i just want to show pdf document without showing tool bar.please answer anyone.this is my code

        axAcroPDF1.setShowToolbar(false);
        this.axAcroPDF1.LoadFile(@"C:\Users\Chinna\Desktop\Sample.pdf");

setShowtoolbar(fasle) property is not workingenter image description here

i want to hide this toolbar in my pdf document

Hamid Pourjam
  • 20,441
  • 9
  • 58
  • 74
Chinna
  • 59
  • 1
  • 1
  • 8

1 Answers1

4

you should load file first then setShowToolbar to false

axAcroPDF1.LoadFile(@"C:\Users\Chinna\Desktop\Sample.pdf");
axAcroPDF1.src = @"C:\Users\Chinna\Desktop\Sample.pdf";
axAcroPDF1.setShowToolbar(false);
axAcroPDF1.Show();
Hamid Pourjam
  • 20,441
  • 9
  • 58
  • 74
  • Hi @dotctor. its working in my application but its not working in other application – Chinna Feb 17 '15 at 10:42
  • what is your application? what is others application? what is not working? – Hamid Pourjam Feb 17 '15 at 10:43
  • in my application i just load a file directly.in other application i created a pdf document using itextsharp then display in axAcroPDF1. – Chinna Feb 17 '15 at 10:46
  • this is another application code axAcroPDF1.LoadFile(filepath); axAcroPDF1.src = filepath; axAcroPDF1.setShowToolbar(false); axAcroPDF1.Show(); – Chinna Feb 17 '15 at 10:55
  • Sorry its working in my system but not in some systems .i cant find the answer, anyone please answer for this.. – Chinna Feb 18 '15 at 06:09
  • what is the difference between your system and other systems? that's a whole new question – Hamid Pourjam Feb 18 '15 at 07:44
  • See this: http://stackoverflow.com/questions/12750725/can-i-hide-the-adobe-floating-toolbar-when-showing-a-pdf-in-browser – Andrea Colleoni Jul 29 '15 at 10:08