Hi,
I have been trying to debug a project and everything is perfect except for the report generation module.
For report generation i am using Crystal reports, However when i try to generate the report, the Below error is displayed. Could anyone Help me to rectify the error.
The Related coding is given below:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
using System.Data.SqlClient;
namespace msmReports
{
public static class util
{
public static void billById(string billno)
{
frmrptViewer frm = new frmrptViewer();
frm.crv.ReportSource = new rptbill();
ParameterFields fields = new ParameterFields();
ParameterField field = new ParameterField();
field.Name = "@billno";
ParameterDiscreteValue value = new ParameterDiscreteValue();
value.Value = billno;
field.CurrentValues.Add(value);
fields.Add(field);
frm.crv.ParameterFieldInfo = fields;
frm.Show();
}
public static void viewstock()
{
msmReports.frmrptViewer frm = new msmReports.frmrptViewer();
frm.crv.ReportSource = new msmReports.rptStockview();
frm.Show();
}
}
}
.
Please Check and reply if any solutions can be offerred.
Regards Noel......
Message was edited by: Don Williams