当前位置:编程学习 > C#/ASP.NET >>

水晶报表: 对于字符串而言缓冲区太小或缺少空字节

对于字符串而言缓冲区太小或缺少空字节。

源错误: 


行 52: 
行 53:         CrystalReportSource1.ReportDocument.Load(Server.MapPath("cheshi.rpt"));
行 54:         CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables["tb_evt_mail_clct_05"]);
行 55: 
行 56:        
 

COMException (0x800001f7): 
对于字符串而言缓冲区太小或缺少空字节。]
   CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault) +0
   CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) +1504
   CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) +259

[InvalidArgumentException: 
对于字符串而言缓冲区太小或缺少空字节。]
   CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +358
   CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) +282
   CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable) +115
   report_cheshi.Button1_Click(Object sender, EventArgs e) in d:\开发项目\知识库系统\程序备份\KSSSystem_2010_4_20\KSSEnterprise\KSSWeb\report\cheshi.aspx.cs:54
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +126
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +136
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +39
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +37
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +87
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4177

sql语言:
string strsql = "select (case when substr(prod_code,1,1)='1' then '同城' ";
        strsql+=   "  when substr(prod_code,1,1)='2' then '地市区' ";
        strsql+="   when substr(prod_code,1,1)='3' then '省内' ";
        strsql+= "   when substr(prod_code,1,1)='4' then '国内' ";
        strsql+= "   else  '国际' end)";
 strsql += " from tb_evt_mail_clct_05 t  where  to_char(clct_date,'yyyymmdd')='20101010' group by substr(prod_code,1,1) ";

请求高手帮忙? --------------------编程问答-------------------- 急死了 请高手帮忙啊? --------------------编程问答-------------------- 有人知道如何解决吗? --------------------编程问答-------------------- ini_set('memory_limit', -1); // 取消缓冲内存限制 --------------------编程问答-------------------- ini_set('memory_limit', -1); // 取消缓冲内存限制 --------------------编程问答-------------------- 在查询分析中执行SQL
释放资源
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,