Crystal ReportsGeneral discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Refresh database fields in crystal report designed
In windows application I designed the crystal report from a .xsd file. I generated the .xsd from a DataSet generated by executing a stored procedure. Later I changed the stored procedure and anoter column for returning. Againg I generaed the .xsd, but the new field is not displayed database field of field explorer of crystal report.
Please help me.
Follwing code I used. commented section I used for creating .xsd
SqlCommand cmdVendor=new SqlCommand("usp_rptPurchaseAnalysis");
cmdVendor.CommandType = CommandType.StoredProcedure;
cmdVendor.Parameters.Add("@fromVendor",txtStarting Vendor.Text.Trim());
cmdVendor.Parameters.Add("@toVendor",txtEndingVend or.Text.Trim());
DataSet dsVendor = objDb.getData(cmdVendor);
/*dsVendor.WriteXmlSchema("d:\\test1.xsd");
MessageBox.Show("complete");*/
ap4_8 objRpt = new ap4_8();
objRpt.SetDataSource(dsVendor.Tables[0]);
clsCRP objCRP =new clsCRP(objRpt);