how to solve this Problem in asp.net crystal report.
Posted
by Ayyappan.Anbalagan
on Stack Overflow
See other posts from Stack Overflow
or by Ayyappan.Anbalagan
Published on 2010-05-21T10:41:48Z
Indexed on
2010/05/21
10:50 UTC
Read the original article
Hit count: 384
Problem in crystal report After excecuting the bellow code,In my report page it ask like "The report you requested requires further information" server= user= password= databse=
protected void Page_Load(object sender, EventArgs e)
{
MySqlConnection sqlcom = new MySqlConnection("server=localhost;userid=root;password=root;database=hemaepdb;");
MySqlCommand cmd = new MySqlCommand("SP_ViewBillDetails", sqlcom);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("p_Invoice_Id", MySqlDbType.Int16).Value = 1;
cmd.Parameters.Add("p_Org_id", MySqlDbType.Int16).Value = 1;
MySqlDataAdapter adapter = new MySqlDataAdapter(cmd);
DataSet dsTest = new DataSet();
sqlcom.Open();
adapter.Fill(dsTest, "Table");
sqlcom.Close();
CrystalReportViewer1.Visible = true;
ReportDocument myRpt = new ReportDocument();
myRpt.Load(Server.MapPath("CrystalReport.rpt"));
myRpt.SetDatabaseLogon("root", "root", "localhost", "hemaepdb");
myRpt.SetDataSource(dsTest);
CrystalReportViewer1.ReportSource = myRpt;
}
© Stack Overflow or respective owner