Joined: 29 Jun 2011
Online Status: Offline
Posts: 1
Topic: Field name not known Posted: 29 Jun 2011 at 5:02pm
Hi,
This has been bugging me for few days. I have a web application in visual studio 2005 with Crystal Report 2008 and a database of SQL 2008.
I'm using Report Viewer version 12.0.2000 in visual studio to display crystal report. My other reports are working perfectly fine but this Reports which has formula fields on the header portion of CR are creating errors.
here's the error:
This field name is not known.
Details: errorKind
Error in File MyReport {466F2BF2-CAB2-4916-A7E8-93682C8F17A9}.rpt:
Error in formula MBrach:
'if not isnull({?@M_Code} ) then
'
This field name is not known.
Details: errorKind
here's my code in displaying data:
On Page_Init() rd = new ReportDocument(); ReportDoc = new ReportDocument(); ReportDoc.Load(Server.MapPath("~/Reports/MyReportsCollection/" + "ClientReport.rpt")); ReportDoc.SetDataSource(ReportDiscountedVLB()); this.CrystalReportViewer1.ReportSource = ReportDoc; this.CrystalReportViewer1.DataBind();
ReportDiscountedVLB() function private DataTable ReportDiscountedVLB() {
ReportsBLL RBLL = new ReportsBLL(); DataTable dt = new DataTable(); string AssOfDate = "";
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum