georgesq
April 7th, 2003, 07:44 AM
Colleagues I am with the problem cited in the subject of this email.
That the problem alone only occurs in the machine of the customer, in
mine where I am developing the project, everything occurs perfect.
It follows below the code that I am placing to fill the DataSet.
String strConn = ConfigurationSettings.AppSettings
["ConnectionString"];
SqlConnection connection = new SqlConnection(strConn);
// SqlConnection connection = new SqlConnection("user
id=sa;password=38714659;initial catalog=stiweb_bayer;data
source=200.162.212.83; Timeout=500");
SqlDataAdapter dadap = new SqlDataAdapter(dml, connection);
dstLigPart dataset = new dstLigPart();
dadap.Fill(dataset, "vwLigPartBayer");
DataTable vdtI = dataset.Tables["vwLigPartBayer"];
int vintTRow = vdtI.Rows.Count;
CrystalReportViewer1.SeparatePages = (Boolean) Session["PPAG"];
oRpt.SetDataSource(dataset);
CrystalReportViewer1.ReportSource = oRpt;
That the problem alone only occurs in the machine of the customer, in
mine where I am developing the project, everything occurs perfect.
It follows below the code that I am placing to fill the DataSet.
String strConn = ConfigurationSettings.AppSettings
["ConnectionString"];
SqlConnection connection = new SqlConnection(strConn);
// SqlConnection connection = new SqlConnection("user
id=sa;password=38714659;initial catalog=stiweb_bayer;data
source=200.162.212.83; Timeout=500");
SqlDataAdapter dadap = new SqlDataAdapter(dml, connection);
dstLigPart dataset = new dstLigPart();
dadap.Fill(dataset, "vwLigPartBayer");
DataTable vdtI = dataset.Tables["vwLigPartBayer"];
int vintTRow = vdtI.Rows.Count;
CrystalReportViewer1.SeparatePages = (Boolean) Session["PPAG"];
oRpt.SetDataSource(dataset);
CrystalReportViewer1.ReportSource = oRpt;