hide toolbar of pdf in AxAcroPDF

Chinna picture Chinna · Feb 17, 2015 · Viewed 9.3k times · Source

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

Answer

Hamid Pourjam picture Hamid Pourjam · Feb 17, 2015

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();