473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Reports and the ReportViewer

ME
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
using a Typed Dataset Object as my source)

Trouble is it doesn't work. I get nothing in the report at run time. If I
change my datasource so that it looks at the Customers dataAdapter of the
Typed dataset I manage to get a single report but it will not display any
more than 1 report. If I remove the "First" aggragete expression from my
customer report fields I get "ERROR" at run time.

Is there something I a missing here? Does anyone have, or know of, a
tutorial that can guide me through creating a simple report that doesn't use
SQL Reporting Services?

Thanks,

Matt
Jan 20 '06 #1
4 2891

"ME" <tr*********@comcast.netREMOVETHIS> wrote in message
news:3v******************************@comcast.com. ..
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 using a Typed Dataset Object as my source)

Trouble is it doesn't work. I get nothing in the report at run time. If
I change my datasource so that it looks at the Customers dataAdapter of
the Typed dataset I manage to get a single report but it will not display
any more than 1 report. If I remove the "First" aggragete expression from
my customer report fields I get "ERROR" at run time.

Is there something I a missing here? Does anyone have, or know of, a
tutorial that can guide me through creating a simple report that doesn't
use SQL Reporting Services?

Thanks,

Matt

Have you fill your dataset, it looks like dataset is empty.

Regards D
Jan 20 '06 #2
ME wrote:
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
using a Typed Dataset Object as my source)

Trouble is it doesn't work. I get nothing in the report at run time. If I
change my datasource so that it looks at the Customers dataAdapter of the
Typed dataset I manage to get a single report but it will not display any
more than 1 report. If I remove the "First" aggragete expression from my
customer report fields I get "ERROR" at run time.

Is there something I a missing here? Does anyone have, or know of, a
tutorial that can guide me through creating a simple report that doesn't use
SQL Reporting Services?

Thanks,

Matt

If you want to display all records then:
- Open your report file (customer.rdlc)
- Instead of textboxes you can use Table component from Toolbox (drag it
on report)
- Then drag field from datatable to first column in middle row (details)
of table component, then second field from datatable to second column etc.
- First row is header and third is footer
- When finished click in left-upper corner of Table component to select
it and in Proprties pick DataSetName
That's it.
Jan 20 '06 #3
ME
Yes. Please see for yourself: I can't get the report to show more than one
record. Perhaps it is more difficult than I thought?

http://mreprogramming.com/currentrel...lication25.zip

Thanks,

Matt

"Dubravko" <Du*******************@foi.hr> wrote in message
news:dq**********@bagan.srce.hr...

"ME" <tr*********@comcast.netREMOVETHIS> wrote in message
news:3v******************************@comcast.com. ..
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 using a Typed Dataset Object as my source)

Trouble is it doesn't work. I get nothing in the report at run time. If
I change my datasource so that it looks at the Customers dataAdapter of
the Typed dataset I manage to get a single report but it will not display
any more than 1 report. If I remove the "First" aggragete expression
from my customer report fields I get "ERROR" at run time.

Is there something I a missing here? Does anyone have, or know of, a
tutorial that can guide me through creating a simple report that doesn't
use SQL Reporting Services?

Thanks,

Matt

Have you fill your dataset, it looks like dataset is empty.

Regards D

Jan 20 '06 #4
ME
But I need each customer on a SEPERATE page. This method puts them all on a
single page and drastically reduces my formating. If all I wanted was a
table I would use a different approach than a report (i.e., an HTML table or
datagrid).

Thanks,

Matt
"Ranko" <d.*****@gmail.com> wrote in message
news:uD*************@TK2MSFTNGP15.phx.gbl...
ME wrote:
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 using a Typed Dataset Object as my source)

Trouble is it doesn't work. I get nothing in the report at run time. If
I change my datasource so that it looks at the Customers dataAdapter of
the Typed dataset I manage to get a single report but it will not display
any more than 1 report. If I remove the "First" aggragete expression
from my customer report fields I get "ERROR" at run time.

Is there something I a missing here? Does anyone have, or know of, a
tutorial that can guide me through creating a simple report that doesn't
use SQL Reporting Services?

Thanks,

Matt

If you want to display all records then:
- Open your report file (customer.rdlc)
- Instead of textboxes you can use Table component from Toolbox (drag it
on report)
- Then drag field from datatable to first column in middle row (details)
of table component, then second field from datatable to second column etc.
- First row is header and third is footer
- When finished click in left-upper corner of Table component to select it
and in Proprties pick DataSetName
That's it.

Jan 20 '06 #5

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

Similar topics

2
by: Ralph | last post by:
Could anybody please give me a brief idea on how printing with Crystal Reports is done from .NET? Thanks in advance!
1
by: Neodynamic | last post by:
Due to its flexible design, Neodynamic Barcode Professional for Reporting Services (http://www.neodynamic.com/Products/BCRS/BarcodeRS.aspx?tabid=78&prodid=7) allows you to show barcode images in...
1
by: monskie | last post by:
Hello to all, I have a problem which could be trivial to you guys. This concerns opening several crystal reports on the a crystal viewer on an ASPX page by calling window.open. My...
0
by: mr_doles | last post by:
I have finally got the hang of this ReportViewer control. The one question that I have is dealing with multiple reports. If I have, lets say, 10 rdlc reports should I have 10 WinForms to put them...
9
by: Altman | last post by:
I am currently using ASP.Net 2003 and will be upgrading to 2005 sometime in the near future. I have been having issues with using Crystal Reports that were included with .Net to handle my...
4
by: Ryan | last post by:
I'm trying to create a report (similar to access) in VB 2005. It appears that Crystal Reports is the recommended method. I created a Crystal Report, set up the data connection (using the Wizard...
1
by: badwal | last post by:
One of the requirements of our ASP.NET 2.0 web application (developed with visual studio 2005) is to create reports in form of excel spreadsheets with data coming from Sql Server 2005 database. ...
1
by: BK | last post by:
A little rant first... I have 15+ years experience with developing software. Why is it that everything related to creating reports in .NET seems so convoluted to me? I don't want to use...
0
by: George Race | last post by:
I am trying to display pictures in either ReportViewer or Crystal Reports, using VB 2005. I have the path to pictures in a Form text box that is linked to the database containing the full path to...
0
by: =?Utf-8?B?TUZD?= | last post by:
Hello, I have a windows application over data form that has a reportviewer control on it. I have several reports defined, each works as expected when they are embedded into the report. On...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
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...

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.