这是crystal report 10g的一个bug。
解决方法:搜索安装盘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;