Last post Jun 01, 2010 08:42 AM by chandu2chandu1
May 31, 2010 07:22 AM|developer123|LINK
Hi all!! I ma using vb.net and MS-Access as database to create an application where I do search some clients. Now I want to pass the searched values to crystal report so that I can take the print out in the format. But don't know how to pass the values in
crystal report using code.
An help would be much appreciable.
Thanks in Advance.
dynamic crystal report generation
passing values to report
May 31, 2010 10:04 AM|chandu2chandu1|LINK
You can pass values to the crystal reports in the way of parameters. You can create the parameters in the crystal reports and later you can pass those values programatically. Go for http://www.c-sharpcorner.com/UploadFile/john_charles/WorkingwithParameterFieldsinCrystalReports06232008102249AM/WorkingwithParameterFieldsinCrystalReports.aspx
this article to learn about Crystal Report parameters,
Jun 01, 2010 03:53 AM|developer123|LINK
Thanks sir. I tried it but my case is somewhat different. Let me explain you a little bit. Let's take an exmaple.
I am on a form where I search for the people in city "Delhi" and then click on a button to generate a report where all the details of the people will be displayed so kindly help in the regards.
Thanks in advance
Jun 01, 2010 08:42 AM|chandu2chandu1|LINK
That is all possible only with parameters. You can pass the values from your VB.NET to your crystal reports only in the parameters. Later the crystal reports can pick up the parameters and can do filters the data. This can be filtered by crystal report
itself or the crystal report can further send the parameter to your database(in case of database other than access, since access wont support stored procedures) which in turn filters and produces the filtered data based on the user query(where user enters
the city in your case).