Generate pdf file without toolbar and navigation pane in C#
Ho to generate pdf file without toolbar and navigation pane in C#..... it should be not showing after saving the pdf file.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Umesh Kumar126 reputationPosted Apr 24, 2014, 1:04 AM EDT
This removes the left navigation pane,
this.ifm.Attributes["src"] = String.Format("pdfdisplay.aspx?ref={0}#navpane=0", Server.UrlEncode(CurrentServiceHistory.Reference)); to remove the toolbar you could do the following: this.ifm.Attributes["src"] = String.Format("pdfdisplay.aspx?ref={0}#toolbar=0", Server.UrlEncode(CurrentServiceHistory.Reference));