Posted 19 March 2018, 6:13 am EST - Updated 29 September 2022, 1:40 am EST
We are successfully rendering PDF documents to the PDFViewer and generating reports into the ReportViewer in our MVC ASP.Net web app. However, when we press the “Print” button in either of the two controls, the printout is sent to the printer with the header/footer information that is configured in the browser itself. We want to print our documents without these browser provided headers and footers as if we had printed directly from Adobe Acrobat, for example.
Is there a way to print a document from the browser as it appears in the viewer? If so, how?
Sample Printout attached here: