I need to print a flat file or send printer controls to a specified printer
or port (lpt1,lpt2, com1...) in a web page.
Firstly, you need to understand that Internet browsers (e.g. IE, FireFox,
Opera, Netscape) are designed specifically to prevent this sort of
behaviour, for fairly obvious security reasons...
In order to achieve what you are looking for, you would need to write some
sort of client-side ActiveX control (or Java applet if you need
cross-browser compatibility). However, this would mean you'd have to
compromise your browser's security settings...
I would strongly advise you not to find another method of achieving what you
need...