473,756 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you use ReportViewer to display a Reporting Services report?

S_K
Hi and thanks in advance for your help.

I have a Reporting Services report that I need to display in an
ASP.NET web page using the ReportViewer. However I can't link the
Reporting Services report (.rdl) to the ReportViewer! I have the
ReportViewer.Lo calReport.Repor tPath set to the path of the .rdl report
but the report still dosen't display.

Can somebody help me on this?

Thanks

Steve
Jul 1 '08 #1
3 3415
I may miss some steps here, but I'll come as close as I can, from the top of
my head.
It's not as simple as just copying the files -
First - you need to rename the .rdl file to .rdlc
You'll need to create the datasets in your ASP.Net application also
Also - if you're using parameters, you will need to create the controls in
the page, separately, and then use an event of some sort (button, etc) to
trigger running the report

I just copied some code here:
(this is for use with 2 date text parameters - you'll need to make the
reportviewer invisible at the start, then, when executing the code:)
Dim dsSource As ReportDataSourc e = New
ReportDataSourc e("DataSetName_ DataTableName", MethodName(txtS tartDate.Text,
txtEndDate.Text ))

rpt.Visible = True
rpt.LocalReport .DataSources.Cl ear()
rpt.LocalReport .DataSources.Ad d(dsSource)
rpt.LocalReport .Refresh()

This is fairly close - you'll need to change it up a little for your own
needs, but as you can see, it's not just a drop and use type of situation.
Hopefully this will give you a start

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"S_K" <st***********@ yahoo.comwrote in message
news:71******** *************** ***********@g16 g2000pri.google groups.com...
Hi and thanks in advance for your help.

I have a Reporting Services report that I need to display in an
ASP.NET web page using the ReportViewer. However I can't link the
Reporting Services report (.rdl) to the ReportViewer! I have the
ReportViewer.Lo calReport.Repor tPath set to the path of the .rdl report
but the report still dosen't display.

Can somebody help me on this?

Thanks

Steve

Jul 1 '08 #2
Follow-up:
In the previous scenario, when using the smart tag, you would choose 'NONE'
when choosing datasources, but you can choose the .rdlc file

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"S_K" <st***********@ yahoo.comwrote in message
news:71******** *************** ***********@g16 g2000pri.google groups.com...
Hi and thanks in advance for your help.

I have a Reporting Services report that I need to display in an
ASP.NET web page using the ReportViewer. However I can't link the
Reporting Services report (.rdl) to the ReportViewer! I have the
ReportViewer.Lo calReport.Repor tPath set to the path of the .rdl report
but the report still dosen't display.

Can somebody help me on this?

Thanks

Steve

Jul 1 '08 #3
S_K
On Jul 1, 3:35*pm, "David Wier" <d...@dw.comwro te:
Follow-up:
In the previous scenario, when using the smart tag, you would choose 'NONE'
when choosing datasources, but you can choose the .rdlc file

David Wierhttp://aspnet101.comht tp://iWritePro.com- One click PDF, convert.doc/.rtf/.txt to HTML with no
bloated markup

"S_K" <steve_kers...@ yahoo.comwrote in message

news:71******** *************** ***********@g16 g2000pri.google groups.com...
Hi and thanks in advance for your help.
I have a Reporting Services report that I need to display in an
ASP.NET web page using the ReportViewer. However I can't link the
Reporting Services report (.rdl) to the ReportViewer! I have the
ReportViewer.Lo calReport.Repor tPath set to the path of the .rdl report
but the report still dosen't display.
Can somebody help me on this?
Thanks
Steve- Hide quoted text -

- Show quoted text -
Thanks that looks like it will work!

Jul 1 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9770
by: Fabio Pagano | last post by:
I was wondering why is there so little interest on the reportviewer control and the report designer integrated in VS 2005. It seems very cool and i think it can replace Crystal Reports. Moreover, it can be used locally (you give the filled dataset) or in conjunction with SqlServer Reporting Services. I am interested with local reports (not reporting services actually), here are two useful links about reportviewer: Microsoft web...
0
2798
by: David Dvali | last post by:
Hello. I have just started using Microsoft Reporting tools and I like it very much. I'm using Microsoft SQL Server 2005 and Microsoft Visual Studio 2005 for generating reports in my ASP.NET web application. Now I want to do following: I want to add feature which will allow user to upload untyped report file to the web server and then my application will dynamically bind and display this report in ReportViewer Control.
4
2906
by: ME | last post by:
I want to generate a simple report that will display information from my customer table in a report format. I created a simple Customers.rdlc file that contains three text boxes bound to =First(Fields!Name.Value) =First(Fields!Address.Value) =First(Fields!Contact.Value) placed a ReportViewer Control on one of my aspx pages. I selected the Customers.rdlc file and accepted the default datasource it generated. (I am
0
1270
by: SSunnergren | last post by:
I hope someone can assist me. I am trying to implement the ReportViewer Control using VB.NET in VS2005. I am using server reports on a Reporting Services server on a domain server. Everything works fine in visual studio and I can bring up any report that I need. When published to another server in my domain, NOT the Reporting Services
1
15866
by: steve | last post by:
Hi All I need help on how to manipulate the data returned from the database for displaying in the new reportviewer at runtime So far I have an rdlc file with a dataset, binding source and Tableadapter as created by the wizard and all work fine However I want to be able to change the displayed report at runtime when the user selects a different report type from a combobox but am unsure how to do
4
4475
by: Sevu | last post by:
I am working with ASP.NET.I am using ReportViwer Control to show my report.I like to add dropdownlist with in the reportviewer control. ( Not top to the control some thing like that).I need to place dropdown near to Export link ( Excel and PDF Export).Is it possible to add at the dropdown list with in report viewer control?. I found the property as ReportViewer.Controls.Add.But its not working.Please help me. Regards, S.Sevugan.
1
17957
by: Rich | last post by:
Hello, I am trying to use the Reportviewer control. I have been following an example from the web, and the instructions from the help files on set up a ..rdlc and binding it to the reportviewer control. The help files state that in the form the contains the reportviewer control there is a tasks smart tags panel in design view. I don't see any such thing. Where do I need to look to see this panel? So I have been trying to follow...
4
16740
by: =?Utf-8?B?SGVyYg==?= | last post by:
Using the WebForms.ReportViewer when I export to PDF, the margins of the report are too large. How can I change the margins of my report to make better use of the printed page space?
5
10360
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 I would like to add a checkbox or dropdown control to the .RLDC and have Item #1, Item #2, or Item #3 display conditionally based on a checkbox being clicked or a dropdown value being selected.
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.