开发者

Set Page Setup Options Programmatically in Classic ASP or ASP.NET

开发者 https://www.devze.com 2023-02-18 23:54 出处:网络
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 automa

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消