Solved

Passing multiple parameters to generate report

Posted on 2008-06-24
4
284 Views
Last Modified: 2013-11-26
Hi Experts,

I have a vb.net app, where i can choose multiple suppliers to generate a product list report on them. My question is, if I select 400 suppliers to include in the report, how do i get those values through to reporting services / my report url, without killing the query string with 400 values?
0
Comment
Question by:Kobz46
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
CutSack earned 500 total points
ID: 21862539
Hi,

How about creating a "ReportParameters" table in your database, with two columns, one being a GUID and the other a text/varchar.

The vb.net app could then create a GUID to put into the first column and a comma separated string of the suppliers into the other.

Then pass the GUID as a parameter to reporting services and use it in your query to do a sub-select to limit the results of the report, based on the saved string.

Your report would need to have a Stored Proc as the data source to enable the query to be dynamic.
0
 

Author Comment

by:Kobz46
ID: 21862987
Howzit C!

That is a good idea and perfect solution and I will award the points to you. I do however have another quick question, I know you can use the reportviewer in vs2005, to generate a dataset in code, give it to the reportviewer and bob's your uncle...

I can't seem to find that report viewer class in 2003? I can only see crystalreportviewer... Do you know of such a class?
0
 
LVL 4

Expert Comment

by:CutSack
ID: 21863388
Hi Kobz46,

The ReportViewer controls are new to VS2005 (and VS2008), prior to that the only option was to redirect to the URL of the report.
0
 

Author Comment

by:Kobz46
ID: 21863410
Thought as much... :-/

Good enough reason to convert the app to 2005/8 hey?

Thanks bud!
K
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Schema 6 45
reading excel file in .net 2 31
Installing .NET 3.5 on Windows Server 2012 1 58
how to remove error in database 6 29
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question