vs2005 ASP.Net 解决水晶报表无法横向打印

这是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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章