Create a table without a dataset in the rdlc report.

I am developing an rdlc report in VS2010, and I need to add a table to the report, but this table has fixed text and does not need a data source. But the report gives an error because the table is not connected to the data source. So my question is: how do I create a table in rdlc that does not need a datsource?

thanks

+6
source share
2 answers

If you have fixed values, you do not need a table. Rather, try adding options .

In any case, I still suggest you create a DataSet to create a DataTable . Programmatically populating the DataTable flexible , and it will still fit your needs.

For example, your DataTable may contain your fixed values, and you can simply attach your DataTable to the Data Source report. I believe this is your simplest solution.

+2
source

By definition, a table requires a linked DataSet.

If you have only one DataSet in the report, it can use this by default, otherwise you will need to specify.

If you do not want to associate a table with a DataSet, you can use one or more independent text fields placed together to get the same results.

You can paste these text fields into a rectangle to save them together when rendering a report.

+2
source

Source: https://habr.com/ru/post/946715/


All Articles