- Category: ASP.NET
you can add sql parameters and include the crystal report after get and drag and drop in your crystal report.
You can go through Below links for passing parameters
Name : Dotnet Developer-2015
Email Id : email@example.com
'Not by might nor by power, but by my Spirit,' says the LORD Almighty.
- #762516Hello Silson,
In most of the cases i have noticed that crystal report generates from database values or with some fields or parameters.
Or else you can make that textboxes's modifiers to public and you can access that textboxe's value while generating report by creating object of that form class.
Sample code :
create parameter field in crystal report design and give name as you want. I have given "cmpname".
set the value like this:
Form1 f = new Form1();
CashMemoReport cmr = new CashMemoReport();
Hope this will work for you.
Let me know if you still facing the problem.
DNS Gold Member
"Failure is the path of least persistence"