CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 1/9/2008 9:50:23 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
RogerMCT
Asp.Net User
ReportViewer Questions1/9/2008 9:50:23 PM

0/0

I have been struggling with this for several days now.

I plan on integrating Reports into my applications using VS2008.  I am very familiar with using Report Design for Reporting Services but I have never used ReportViewer (WebControl).  VS2008 requires you use a Typed DataSet to Bind too and this works fine until I tried to use a query with a parameter or bind it to a stored procedure with a parameter.

When I add the Report Viewer and associate the report it creates a ObjectDataSource.

When I open the RDLC file, the "Report Parameters" section is emtpy (this confuses me because in building regular reports the @Parameter shows up in this list).

Both the query and the stored procedure (trying both methods) ask for a parameter called @Investigator.

Where do I bind this parameter and why doesn't the report viewer ask for it?  When you use ServerReport, it has a box to enter the parameter.  How do I give it a list of parameters to choose from like I would for the Report Server?

These questions are using the LocalReport and not the ServerReport.  The ServerReport works fine but I would like to try it without using the Report Server.

 

Any Direction is GREAT!

RogerMCT
Asp.Net User
Re: ReportViewer Questions1/10/2008 4:14:50 PM

0/0

I figured it out.

 

1    //To use this code create a page with a ReportViewer (rptViewer) and
2    //a ObjectDataSource (ObjectDataSource1)
3    
4    //If your using a LocalReport you will have to configure
5    //the ObjectDataSource
6    
7    //Clear any Select Parameters added from other querys
8    ObjectDataSource1.SelectParameters.Clear();
9    
10   //Set the DataSetTableAdapter and Method
11   ObjectDataSource1.SelectMethod = "GetData";
12   ObjectDataSource1.TypeName = "BioTimeDataSetTableAdapters.ProjectTableAdapter";
13   
14   //Set the Parameters if you have any
15   ObjectDataSource1.SelectParameters.Add(new Parameter("InvestigatorID", TypeCode.String, "10"));
16   
17   
18   //Now that you have set your ObjectDataSource you can
19   //configure your ReportViewer
20   
21   
22   //Set ReportViewer to use a LocalReport file
23   rptViewer.Reset();
24   rptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
25   rptViewer.LocalReport.ReportPath = "Projects.rdlc";
26   rptViewer.LocalReport.DataSources.Add(new ReportDataSource("[ReportDataSet]", "ObjectDataSource1"));
27   
28   //Set ReportViewer to use a ServerReport
29   rptViewer.Reset();
30   Uri uri = new Uri("https://[ReportServer]/reportserver");
31   rptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
32   rptViewer.ServerReport.ReportServerUrl = uri;
33   rptViewer.ServerReport.ReportPath = "/Projects";
34   
35   
 

 I hope this helps some people.  It took my a week to figure all of this out!

Roger Johnson

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro SQL Server 2005: Thomas ... [et Al.]. Authors: Thomas Rizzo, Adam Machanic, Robin Dewson, Louis Davidson, Julian Skinner, Jan D. Narkiewicz, Joseph Sack, Rob Walters, Pages: 674, Published: 2005
Accelerated SQL Server 2008 Authors: Rob Walters, Robert E. Walters, Michael Coles, Robin Dewson, Robert Rae, Fabio Claudio Ferracchiati, Donald Farmer, Jan D. Narkiewicz, Pages: 816, Published: 2008
Client-Side Reporting with Visual Studio in C# Authors: Asif Sayed, Pages: 465, Published: 2007
Applied Microsoft Analysis Services 2005: And Microsoft Business Intelligence Platform Authors: Teo Lachev, Pages: 712, Published: 2005
User Stories Applied: For Agile Software Development Authors: Mike Cohn, Pages: 268, Published: 2004
Nessus Network Auditing Authors: Renaud Deraison, Syngress Media, Inc, Haroon Meer, NetLibrary, Inc, Jay Beale, Roelof Temmingh, Charl Van Der Walt, Raven Alder, Jimmy Alderson, Andy Johnston, George A. Theall, Pages: 508, Published: 2004
Professional SQL Server 2005 Administration Authors: Brian Knight, Ketan Patel, Wayne Snyder, Jean-Claude Armand, Ross LoForte, Brad McGehee, Steven Wort, Joe Salvatore, Haidong Ji, Pages: 735, Published: 2006
Crystal Reports 9 Essentials Authors: Jill Howe, William H. McRae, Scott Spanbauer, Pages: 658, Published: 2003

Web:
Hottest "reportviewer" Questions - Stack Overflow questions tagged. reportviewer. sorted by hotness. Questions with the most recent interest and activity will appear first. See the complete list of tags. ...
Hottest "reportingservices+reportviewer" Questions - Stack Overflow questions tagged. reportingservices reportviewer. sorted by hotness. Questions with the most recent interest and activity will appear first. ...
ReportViewer Questions - ASP.NET Forums ReportViewer Questions. Last post 01-10-2008 11:14 AM by RogerMCT. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
ReportViewer Questions - ASP.NET Forums ReportViewer Questions. Last post 07-04-2007 3:09 AM by smehaffie. 0 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
.NET Questions - Question regarding .NET ReportViewer Control Net ReportViewer control to view .RDLC files. Everything works great on the dev machines. However, when I 'publish' the files to a new ...
Frequently Asked Questions - Crystal Reports Viewer - Report ... Questions we frequently receve about the Report Viewer for Crystal Reports.
C#, Form, ReportViewer => Print questions... C#, Form, ReportViewer => Print questions... microsoft.public.dotnet.framework. windowsforms. Author. 23 Oct 2006 7:29 PM ...
Microsoft SQL Server Reporting Services and Visual Studio 2005 ... The site contains a list of Frequently Asked Questions regarding the ReportPax Label ... It is an asp.net application that uses the ReportViewer Control. ...
report viewer activex control not visible - Technology Questions hi, when taking a look in internet explorer 6 or 7, i do not see the active x control for the report viewer when having opened any report ...
How to Configure Crystal reportviewer in Microsoft access 2003 ... How to Configure Crystal reportviewer in Microsoft access 2003. Get answers to your questions in our Microsoft Access / VBA Forum forum.




Search This Site:










making text boxes fixed?

dnn user controls

server error in '/' application: runtime error

portalalias setting for install in domain root?

performance issues since migrating from asp classic to .net

text editor vs visual studio

visual studio 2005 vs visual web developer

learning asp.net

to stop http access

strings

running 3.0.11 beta error with sockets

if statement with multiple variables

enlarging the title bar of the main module page

navigation link to new window

problem with master pages

problem with staticmenustyles on menu control

how to drive bloger's page

access asp.net configuration on deployed web site

can some one show me a example that search a sql database and use a table to show all results?

obtain network id of current user

dataset

loading portalmodulecontrols from a portalmodulecontrol

need help finding a new host

menuitem with masterpage problem

beginer planning my path through asp.net

aspnetdb.mdf file & sql server express

server error in application - index 0 is either negative or above row count

documents for site

how to create new class of type (another class)

required validator fields firing before page load

 
All Times Are GMT