davidpw posted this 24 March 2014
I have IE 10 on windows 7.
I set some print settings and then try to print preview and IE hangs.
I had to comment out MeadCo.ScriptX.PrintPage(true); because that cause IE to hang to. I'm using scriptx 1.7.
Code is below:
<script type="text/javascript">
$(window).load(function () {
if (MeadCo.ScriptX.Init()) {
if (MeadCo.Licensing.IsLicensed()) {
MeadCo.ScriptX.Printing.SetMarginMeasure(2);
$("#pbPrintLetter").click(function () {
with (MeadCo.ScriptX.Printing) {
header = "This is LETTER size with LANDSCAPE orientation.";
footer = "This is LETTER size with LANDSCAPE orientation.";
orientation = "landscape";
topMargin = 1;
leftMargin = 1;
paperSize = "Letter";
}
// MeadCo.ScriptX.PrintPage(true);
});
$("#pbPrintLegal").click(function () {
with (MeadCo.ScriptX.Printing) {
header = "This is LEGAL size with LANDSCAPE orientation.";
footer = "This is LEGAL size with LANDSCAPE orientation.";
orientation = "landscape";
topMargin = 1;
leftMargin = 1;
paperSize = "A4";
}
// MeadCo.ScriptX.PrintPage(true);
});
}
else {
MeadCo.Licensing.ReportError("This sample requires a license.");
}
}
});
</script>