解決方法:搜索安裝盤crystalprinthost.html文件,打開,找到
if (window.dialogArguments.pageorientation) { objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\""; objectTag += window.dialogArguments.pageorientation objectTag += "\">"; }
objectTag += "\">"; }
改爲
if (window.dialogArguments.paperorientation) {
objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\"";
objectTag += window.dialogArguments.paperorientation;//window.dialogArguments.pageorientation;
objectTag += "\">";
}
然後在相關地方設置報表打印方向:
myReport.PrintOptions.PaperOrientation = ystalDecisions.Shared.PaperOrientation.Landscape;