Atul Bakore

Atul Bakore

  • 0
  • 1
  • 1.7k

How to set client side default printer page size in ASP.NET,

Dec 9 2015 7:15 AM
 

A Web application on Windows 2008 R2 Server (IIS 7.5, .net 4.0), using ASP.NET and C# .net 4.0 version using report viewer 2012 (assembly 11.0 version)has been developed.

 

At client side report is required to get it print on pre-printed stationary (Invoice printing). 'Generic/Text only' printer at Server and client side has been installed and a form (with desired height, width, margins etc.) has been created and attached to that default printer.

 

During execution at client end report viewer tool bar picks up the default printer but always set paper size as 'Letter'.

 

Need sample code to get and set the default printer page size during execution.

 

- Atul Bakore, Raymond, Thane (India)


Answers (1)