Hi everyone
Sorry I don't write very well the english!!!
I checked in this forum how generate and change the content a crystal report in runtime...
I'm using C# 2005 and Crystal Report version 10, both from Visual Studio 2005.
For change the content the Crystal Report, it's using a DataSet but I have problems...
View my code (in the event Page_load)
string infcon, sql;
infcon = "User=sa; Pwd=salesiana; Database=celular";
sql = "Select cat_marca, cat_modelo From dbcel_catalogo Where cat_codigo='9'";
SqlDataAdapter adapter = new SqlDataAdapter(sql, infcon);
DataSet dataset = new DataSet();
adapter.Fill(dataset, "celular");
ReportDocument rp1 = new ReportDocument();
rp1.SetDataSource(dataset);
CrystalReportViewer1.ReportSource = rp1;
Any help me!!!
please.
thanks.
Sorry I don't write very well the english!!!
I checked in this forum how generate and change the content a crystal report in runtime...
I'm using C# 2005 and Crystal Report version 10, both from Visual Studio 2005.
For change the content the Crystal Report, it's using a DataSet but I have problems...
View my code (in the event Page_load)
string infcon, sql;
infcon = "User=sa; Pwd=salesiana; Database=celular";
sql = "Select cat_marca, cat_modelo From dbcel_catalogo Where cat_codigo='9'";
SqlDataAdapter adapter = new SqlDataAdapter(sql, infcon);
DataSet dataset = new DataSet();
adapter.Fill(dataset, "celular");
ReportDocument rp1 = new ReportDocument();
rp1.SetDataSource(dataset);
CrystalReportViewer1.ReportSource = rp1;
Any help me!!!
please.
thanks.