Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello ! here ,I want to print a crystal report on invoice no.. When i submit product details,it prints on that invoice number but, here is the problem that when i submitted my next product detail
it could not print crystal report on present parameter value means invoice number, it added all current details to the previous details and show previous invoice number.
Please! Give provide a solution .I am not habitual with windows form.Its a Sale invoice project which is my first project.
here is some parts of code:

private void Report_Load(object sender, EventArgs e)
{


CrystalReport1 cryRpt = new CrystalReport1();

ParameterField paramField = new ParameterField();
paramField.Name = "BillNo";
ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
paramDiscreteValue.Value = a;
paramField.CurrentValues.Add(paramDiscreteValue);
ParameterFields paramFields = new ParameterFields();
paramFields.Add(paramField);
crystalReportViewer1.ParameterFieldInfo = paramFields;

}
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900