Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Passing parameters to ReportViewer

Posted on 2012-03-20
3
Medium Priority
?
396 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 1000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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:…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

721 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