troubleshooting Question

Passing Multiple Values or a Range to a Crystal Report

Avatar of Clif
ClifFlag for United States of America asked on
Visual Basic.NET
3 Comments1 Solution347 ViewsLast Modified:
I'm usinf VB.Net 2010 (pro), the report was created with CR XI and the CrystalDecisions version is 13.x

I'm creating a report "broadcaster" application.  Basically the app will take in a list of reports, the email addresses of those who are subscribed, values for parameters and days/times of sending.

Everything is fine except the parameters.  A couple of the reports have, potentially, a list of values (like department names).  In the report itself, this is a listbox showing all possibilities, and another listbox that allows you to add one or more items from the first listbox.  Hopefully you know what I'm talking about.

How do I do this in code, though?

For example, if I want to show records for department ABC, I know I can do this:
myReportDocument.SetParameterValue("DeptName", "ABC")
But what happens if I want to show records for department ABC, DEF and GHI?

Would I do this:
myReportDocument.SetParameterValue("DeptName", "ABC")
myReportDocument.SetParameterValue("DeptName", "DEF")
myReportDocument.SetParameterValue("DeptName", "GHI")
Or this:
myReportDocument.SetParameterValue("DeptName", "ABC,DEF,GHI")
Or something completely different?

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros