ScriptX and printing layout

MyPlanet 2002-11-07 09:22:49
I use ScriptX to print out the ASP page. But the setting for the default layout of print is only working for IE 6.0 (not for IE 5.5).

If somebody have any idea about it, please help.

-----------------------------------Code
......

<object classid="clsid:1663ed61-23eb-11d2-b92f-
008048fdd814" id="factory" codebase="<%=m_strroot%>
ApplicationsCoordination/Coordinator/ScriptX.cab#Version=5,
60,0,375" style="display:none" viewastext></object>
......

//(JavaScript) this part is for setting the default layout of print, but
only works for IE 6.0 (not for IE 5.5)
<%If ReportName = "core_report11" then%>
' Set to landscape layout
document.factory.printing.portrait = false;
<%else%>
' Set to portrait layout
document.factory.printing.portrait = true;
<%End if%>
......

document.factory.printing.Print(true);
...全文
107 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
MyPlanet 2002-11-08
  • 打赏
  • 举报
回复
Thanks, but it is very shtrange that it doesn't work on ie 5.5.
孟子E章 2002-11-07
  • 打赏
  • 举报
回复
it should work well in ie5+

87,975

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧