- Jul 18, 2002
- 1,655
- 1
- 81
I have a report called "DataSheet.rpt" When you look under the "Database Fields" tab under "Field Explorer" I have 4 stored procedures, all of which take a single discrete value.
The parameter fields are @SSN, @GUID, @ABC. I also have a subreport embedded with the main report, called "XYZ" which takes a single discrete value, also called @SSN.
I have the whole report working fine when I toggle into the "Main Report Preview" and enter the parameters manually, so I know all the stored procedures and the like are working correctly.
I need an example from top to bottom of how to populate my report using vb.net code. I have been able to find some examples on the internet, but am having trouble with them, so I am looking for the basic skeleton code of creating a report, passing it some parameters, and displaying it.
The problem I am running into looking online is apparently there are many different ways to do this and I can't seem to find a comprehensive reference that breaks it down. Right now I have a Crystal Report Viewer on my form and a its "ReportSourceID" set to CrystalReportSource1 which references my report.
Thanks!
The parameter fields are @SSN, @GUID, @ABC. I also have a subreport embedded with the main report, called "XYZ" which takes a single discrete value, also called @SSN.
I have the whole report working fine when I toggle into the "Main Report Preview" and enter the parameters manually, so I know all the stored procedures and the like are working correctly.
I need an example from top to bottom of how to populate my report using vb.net code. I have been able to find some examples on the internet, but am having trouble with them, so I am looking for the basic skeleton code of creating a report, passing it some parameters, and displaying it.
The problem I am running into looking online is apparently there are many different ways to do this and I can't seem to find a comprehensive reference that breaks it down. Right now I have a Crystal Report Viewer on my form and a its "ReportSourceID" set to CrystalReportSource1 which references my report.
Thanks!