Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Reports and the ReportViewer

Reply
Thread Tools

Reports and the ReportViewer

 
 
ME
Guest
Posts: n/a
 
      01-20-2006
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


 
Reply With Quote
 
 
 
 
Dubravko
Guest
Posts: n/a
 
      01-20-2006

"ME" <> wrote in message
news:3v-...
>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


 
Reply With Quote
 
 
 
 
Ranko
Guest
Posts: n/a
 
      01-20-2006
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.
 
Reply With Quote
 
ME
Guest
Posts: n/a
 
      01-20-2006
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" <> wrote in message
news:dqq4k3$cat$...
>
> "ME" <> wrote in message
> news:3v-...
>>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
>



 
Reply With Quote
 
ME
Guest
Posts: n/a
 
      01-20-2006
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" <> wrote in message
news:...
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
View multiple drillthrough reports in one ReportViewer jcrain ASP .Net Web Controls 0 02-05-2007 05:40 PM
Problems using ASP and Crystal Reports 8.5 to create dynamic PDF reports PughDR@gmail.com ASP General 0 10-23-2006 02:50 PM
Reports and the ReportViewer ME ASP .Net 4 01-20-2006 03:30 PM
How to add barcode images into ASP.NET ReportViewer - RDLC reports =?Utf-8?B?TmVvZHluYW1pYw==?= ASP .Net 1 11-23-2005 01:36 PM
Displaying Microsoft Access Reports (active reports) via ASP.NET Brian Barnes ASP .Net 1 02-18-2004 05:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57