Print Templates i IE5.5+
jeg har problemer med at sætte printer.orientation = "landscape" når jeg bruger "Print Templates". Følgende kode bruges i filen PT.html (filen loades ved at kalde execWB på en embedded control i en .NET form).:<HTML XMLNS:IE>
<HEAD>
<?IMPORT NAMESPACE="IE" IMPLEMENTATION="#default">
<SCRIPT LANGUAGE="JavaScript">
function Init() {
// Set landscape
//printer.orientation="landscape";
printer.orientation(v)="landscape";
alert("printer.orientation = "+printer.orientation);
/*
if (printer.pageWidth < printer.pageHeight) {
temp = printer.pageWidth;
printer.pageWidth = printer.pageHeight;
printer.pageHeight = temp;
}
*/
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="Init()" ONRESIZE="ResizeApp()" SCROLL="no">
<IE:TEMPLATEPRINTER ID="printer"/>
</body>
</html>
