Solved

Passing parameters to ReportViewer

Posted on 2012-03-20
3
388 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
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
Comment Utility
0
 
LVL 7

Author Comment

by:ayha1999
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now