Solved

Passing parameters to ReportViewer

Posted on 2012-03-20
3
395 Views
Last Modified: 2012-03-21
HI,

How can I pass parameters to ReportViewer in c# 2010 windows application? Please provide some samples. I am using Access 2007 database.

Thanks

ayha
0
Comment
Question by:ayha1999
[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
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 37743694
0
 
LVL 7

Author Comment

by:ayha1999
ID: 37746641
I am using ReportViewer control not Crystal Report.

I bind the ReportViewer as

       private void Report_Load (object sender, EventArgs e)
       {
          // TODO: This line of code loads data into the 'dsReport.qReport' table. You can move, or remove it, as needed.

          this.qReportTableAdapter.Fill (this.dsReport.qReport);
          this.reportViewer1.RefreshReport ();

The Access 2007 query is

select * from mytable where id=@id

How can I add Id and its value in dataset?

Thanks
0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 37747930
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

635 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