Printing in Intranet Web Applications with IE
One of the web applications that I have deployed in the last year in a Government institution is using Internet explorer mainly as web client. Even if the web application was mainly based on open source technologies, I had to deal with closed source issues.
Using windows as terminal for a web application is not a problem, but problems start when you have different version of windows and Internet explorer here and there, but especially when we deal with other devices like printers or barcode readers.
One of these issues is completely strange and personally I couldn’t explain the reason why when a user change a printer, the web page margins change ! Some employees have more than one printer available for common A4 printing tasks, barcode printing … etc. So it’s annoying to fix margins – even from registry – and then seeing these values changing for every printer – randomly !
There is always a solution, and for this problem specifically I wrote an activex script that reset page margins before printing anything. It worked fine, in addition to another script that deploy some IE settings to all clients in the network through active directory.
But seriously, can someone explain why when a user change printer, the web page margins change ?
RSS 2.0 feed. Both comments and pings are currently closed.


The main cause is the language of the printer itself, PCL printers such as HP, PostScript such as Epson, Interpress such as Xerox and finally the latest PDL which is the most latest and including most of the former mentioned languages, simply talk, you have to include a format for each printer in your application. I didn’t mention the Barcode printers because a little bit different on how it is receiving data and also printing languages.
Hani what’s annoying is the setting at IE level itself, I am just switching printers, before sending anything yet to print.