473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reportviewer Control - data not displaying

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 an example on the web that sets up the
reportview control through code. I created the data soucrce (my .rdlc file)
which I named Report1 and planted the following code in the form load event.
When I execute the form, the reportviewer control shows some gif that says
"generating report". When it is done, I do not see my test data.

The data source is a plain table called "tbl1" which resides in a
sqlserver(2000) DB. The table contains 4 columns and about 6 rows of
data. I can see the data in visual studio designer when I preview the data
from the .rdlc. Here is the code:

Me.Tbl1TableAdapter.Fill(Me.Subscriber6DataSet.tbl 1)
RV1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
RV1.LocalReport.ReportPath = "C:\Code\TestProj\Report1.rdlc"
RV1.LocalReport.DataSources.Add(New
Microsoft.Reporting.WinForms.ReportDataSource("tbl 1"))
RV1.LocalReport.ExecuteReportInCurrentAppDomain(Sy stem.Reflection.Assembly.GetExecutingAssembly().Ev idence)
Me.RV1.RefreshReport()

Could someone tell me what I am missing or need to change? or could someone
tell me what the reportviewer control tasks smart tags panel is? Or where to
look for it?

Thanks,
Rich
Sep 15 '06 #1
1 17910
I got it going. The key is to be able to read the instuctions. So here is
what I did (for posterity)

First I add a dataset from the Solution window - right click on the solution
title - goto Add - add the new dataset. Then I use the wizard in the
datasource tab of the solution window. Right -click on the new dataset I
just added and grab a table from the sqlserver DB. Now I have a typed
dataset with a datatable.

Next I add a Report to the project. From the solution window - solution
title - right click -goto Add - Add a new Report - which will be of type
..rdlc. In the report designer I drag a table from the toolbox onto the
Report canvas. Then, from the solution window/datasource tab, I expand the
dataset, expand the table and and drag each column of the datatable to the
desired detail cells in the table I just dragged into the Report canvas in
the Report designer. This automatically binds the dataTable columns to the
cells in the Report Table.

Next, I drag a reportviewer control to the form from the toolbox. The
control will have a dropdown asking what report to bind to. I select the
report I just added to the project. This will generate some autocode behind
the form in the Form_load event: It add this code:

'TODO: This line of code loads data into the 'DataSet1.tbl1' table. You can
move, or remove it, as needed.

Me.tbl1TableAdapter.Fill(Me.DataSet1.tbl1)

Me.RV1.RefreshReport()

Now I can see the data. Ideally, I would like to do this more dynamically
so I can report on data not stored on a disk, I guess that would be a list.
Well, at least I can now see some data.

"Rich" wrote:
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 an example on the web that sets up the
reportview control through code. I created the data soucrce (my .rdlc file)
which I named Report1 and planted the following code in the form load event.
When I execute the form, the reportviewer control shows some gif that says
"generating report". When it is done, I do not see my test data.

The data source is a plain table called "tbl1" which resides in a
sqlserver(2000) DB. The table contains 4 columns and about 6 rows of
data. I can see the data in visual studio designer when I preview the data
from the .rdlc. Here is the code:

Me.Tbl1TableAdapter.Fill(Me.Subscriber6DataSet.tbl 1)
RV1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
RV1.LocalReport.ReportPath = "C:\Code\TestProj\Report1.rdlc"
RV1.LocalReport.DataSources.Add(New
Microsoft.Reporting.WinForms.ReportDataSource("tbl 1"))
RV1.LocalReport.ExecuteReportInCurrentAppDomain(Sy stem.Reflection.Assembly.GetExecutingAssembly().Ev idence)
Me.RV1.RefreshReport()

Could someone tell me what I am missing or need to change? or could someone
tell me what the reportviewer control tasks smart tags panel is? Or where to
look for it?

Thanks,
Rich
Sep 15 '06 #2

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

Similar topics

4
by: Raghu | last post by:
I have developed a web portal that uses ReportViewer web control to connect to a remote SQL 2005 Report server and displays the reports on the client side. The asp.net page has been coded to...
1
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...
4
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...
0
by: Rich | last post by:
Hello, I started using the Reportviewer control (very nice) for generating Reporting Services type reports in my VB2005 app. I have been experimenting using a designer Reportviewer control from...
0
by: Fred G. Sanford | last post by:
Firstly, I am a fairly new .Net developer, so please excuse any dumb/ignorant questions or comments. Thanks. I created a VWD Express project, which uses the ReportViewer control, on my local...
0
jgroos
by: jgroos | last post by:
Here is my scenario: I have two different reports processed LOCALLY, lets say Report1.rdlc and Report2.rdlc. They both are populated with data from a database, and they both also take a list of...
10
by: AG | last post by:
I am trying to use a ReportViewer control in a VS 2005 web application project (not Website project). When I try to create a new report (local), I can't seem to find any method to create a...
5
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 ...
1
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.