更新时间:2023-09-27 17:02:40
您好,
请参考以下链接逐步实施,如果您发现任何疑问,请告诉我。
[ ^ ]
http://csharp.net-informations.com/crystal -reports / csharp-crystal-reports-stepbystep.htm [ ^ ]
谢谢
Hi there,
Please refer below link for step by step implementation,If you find any query then let me know.
[^]
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm[^]
Thanks
有没有办法清除那个报告 ?例如,我有一个文本框,在文本框中我放了条形码的副本数量,所以当我放入两个裸码副本时,当我更改副本数量时,它必须清除报告并放置新副本。 。
这是我的代码...
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;
有没有办法找到水晶报告的路径?我不想把C:.....放在负载中。
And is there a way to find the path to the crystal report ? I don't want to put C:..... in the load.