|
-
Sep 7th, 2006, 07:53 AM
#1
Thread Starter
Addicted Member
how to pass multiple parameters to a report?
hi,
I have a report that works fine and gets me all data. I need to integrate this report to a vb.net application and instead of getting all the records I will need to pass 2 different paramters (ie, Project_ID and Location) through VB.
the Project_ID can be only one or few but the location in only one. what should I change in my report so it expects these paramters?
sample code or pointing into the right directions would be very helpful
thank you,
-
Sep 8th, 2006, 07:55 AM
#2
Re: how to pass multiple parameters to a report?
"The dark side clouds everything. Impossible to see the future is."
-
Sep 8th, 2006, 11:21 AM
#3
Thread Starter
Addicted Member
Re: how to pass multiple parameters to a report?
actually I was looking for solution at the Crystal report end. my report runs and gets all data in the table. what should I change in the report so it looks for certain paramaters(Id)?
thanks
-
Sep 8th, 2006, 11:28 AM
#4
Re: how to pass multiple parameters to a report?
In vb.net its easy in the open the field explorer window of the report.
left click on Parameter Fields right-click and select NEW and a window popup for you to create a new parameter.
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Sep 8th, 2006, 01:34 PM
#5
Hyperactive Member
Re: how to pass multiple parameters to a report?
this works on VS.Net 2003
VB Code:
Dim oCrystal As New rptYourCrystalReport
Sub SetCRParameters(ByVal oCrystal As CrystalDecisions.CrystalReports.Engine.ReportClass)
With oCrystal
.SetParameterValue("prName", "Vincent")
.SetParameterValue("prAccountNo", "12345")
End With
End Sub
-
Sep 12th, 2006, 08:30 AM
#6
Thread Starter
Addicted Member
Re: how to pass multiple parameters to a report?
Last edited by waely; Sep 12th, 2006 at 10:43 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|