Solved

Passing parameters to ReportViewer

Posted on 2012-03-20
3
392 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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:…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

756 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