Dynamic Report c #

2

I am preparing a report with the following structure:

So far everything is set up right, I'm using C # Windows Form, using the ReportViewer component to make the report, but when it comes to getting the data, it just takes the information from the first record, wanted it to generate a record of that per page, with the information for each data specified in the line, this having a button also above to list only the data of certain events in certain cities.

I'm at a point that I do not know how to put it in code and I would not be happy to put it in a table, matrix or list.

I would like to know how to do such a page break for each record.

    
asked by anonymous 13.07.2015 / 19:16

2 answers

0

Well, I can, if anyone wants to give it as answered. I did the following method:

In order to be able to show all records, it is necessary to have a 'data region' (table, list or matrix). I just created a table with 3 rows and 1 column, and I organized it as if it were my 3 text box, and then in the static properties I let it hear the page break. So repeating on every page with all the records and filtering options.

Thanks to anyone who can help me.

    
21.07.2015 / 22:34
1

@SNOT, you have to use the "Header" to put the content or "[Name]", and the other items in the "SubTotal", and configure the report to break by name, since your query is passing the fields Name, LocalEnvento, date_host_evento.

The "Body" you can leave blank, do not remember if the delete will work, but worth testing.

att

LMV

Suppose you have the following:
[NAME] ----------- [date_hour_event] --------- [localEvent] ---- [room]
Luiz Marcelo ....... 2015-07-01 09:00 .......... Hotel xyz ...... room 1
Luiz Marcelo ....... 2015-07-01 10:00 .......... Hotel xyz ...... sala 2
Francisco M ........ 2015-07-01 09:00 .......... Hotel xyz ...... sala 1
Francisco M ........ 2015-07-01 10:00 .......... Hotel xyz ...... sala 2

But you do not want the room, so you use the subtotal feature, which will only indicate a [NAME] and [LocalEvent].

    
13.07.2015 / 22:05