ScriptX and printing layout
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);