So, I inherited this finance reporting web application written in classic ASP and I have been tasked to automatica开发者_JAVA技巧lly set the Page Setup in Print Preview so that the page size is automatically set to Legal and the orientation is set to Landscape.
The web app works in IE7 and uses various ActiveX controls.
Update: is there any way to do this in WScript? I have seen some sample code that does something like the following:
var shell = new ActiveXObject("Wscript.Shell");
shell.sendKeys('...');
Any suggestions thanks?
I used meadco scriptx for control printing setting in IE. It's ActiveX and and clients should install it.
精彩评论