Control Printing (To printer) on web page
I need to find way to control printing from the Javascript (or VBScript) within a web page. Since our project only have to support Internet Explorer 5.5 and above, I can feel free to use some Microsoft specific solution like ActiveX and VBScript.So far I found two soluitions:
(1) Use CSS to control the rendering of the screen. By adjusting the rendering of the page, the page output may look better when printing to the printer. In fact, someone even mentioned that there are specific CSS tag that control printing layout. However, others instantly pointed out that those tag were not implemented in any popular web browser because those tag violates certain browser rules.
(2) Another solution is using a freeware from MeadCo. Here's how to use the free version ActiveX control to control the printing from the web browser.
In addition there are other web sites talking about how to use this ActiveX control to control browser printing:
- WEB打印設置解決方案二(利用ScriptX.cab控件改變IE打印設置)
- ASP開發必備:WEB打印代碼大全
- javascript小技巧
- WEB打印大全

0 Comments:
Post a Comment
<< Home