1.我在用水晶报表做打印的时候只有一页内容,为什么打印出来两张,第二张是空白页啊(只显示了页码)2. 数据库中原来的内容是 “25  ‎RUE DE CLERY ‎75002 fdfe”  打印出来怎么成了这样了 “25  ‎RUE DE CLERY ‎75002 ‎undefined,undefined,undefined”请帮忙看看啊,谢谢了

解决方案 »

  1.   

    25  ‎RUE DE CLERY ‎75002 fdfe是怎么显示在报表上的
    通过参数 ? 还是数据源
    调试下,看你传给报表的值正确吗
      

  2.   

    CrystalDecisions.CrystalReports.Engine.ReportDocument rptdoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
        protected void Page_Load(object sender, EventArgs e)
        {
            GetAmount();        string sTT = Request.QueryString["SqlId"];
            string iMyFile1 = Request.QueryString["MyFile1"];
            string iMyFile2 = Request.QueryString["MyFile2"];
            string sInv_Id=Request.QueryString["KeyData"];
            sInv_Id = Poren3.DesignAid.GetKeyValues(sInv_Id);        string sUrl = "";
            string sQuery1 = "select *  from " + iMyFile1 + " where Inv_Id='" + sInv_Id + "' ";
            if (sTT == "18.外销发票[水晶报表]")
            {
                sQuery1 += "; select * from " + iMyFile2 + " where Inv_Id='" + sInv_Id + "' ";//order by SplitInv_Id,Sort
                sUrl = "E1/Excel/SysTemplate/E1_Shipment_Bill/E1_Shipment_Plan_Print.rpt";
            }
            WJ_Rpt.CreateRpt(CrystalReportViewer1, sQuery1, sUrl, rptdoc);    }
      

  3.   

    把  25  ‎RUE DE CLERY ‎75002 fdfe 
      换成别的字符串试试
      

  4.   

    ‎undefined,undefined,undefined 貌似是前段javascript传值时出错了
    没有拿到相应的值,所以返回个undefined 然后又传入到数据库中了。