Is there a way to clear the report ? for example I have a textbox and in the textbox I put the numbers of copies of the barcode, so when I put two copies of the barecode, and when I change the number of copies it must clear the report and put the new copies...
Here is my code...
for (int i = 0; i < numericUpDown2.Value; i++)
{
cmd = new MySqlCommand("SELECT ChaineEAN, PrixVente FROM tb_produits WHERE Designation ='" + CMB_Designation.Text+ "'", MyConnexion);
MySqlDataAdapter s2 = new MySqlDataAdapter(cmd);
s2.Fill(ds1, "tb_produits");
ds1.WriteXmlSchema((System.IO.Path.GetTempPath() + "\\Tucano_DataBaseConnect.xsd"));
crystal.Load(@"C:...\CrystalReportEAN.rpt");
crystal.SetDataSource(ds1);
CrystalReport.ReportSource = crystal;
And is there a way to find the path to the crystal report ? I don't want to put C:..... in the load.