Create table without dataset in a rdlc report.

roma8716 picture roma8716 · Jun 6, 2013 · Viewed 12.3k times · Source

I'm developing a rdlc report in VS2010 and I need to add a table in the report, but this table has fixed text and doesn't need a datasource. But the report is giving an error because the table isn't related to a datasource. So my question is How do I create table in an rdlc that doesn't need a datsource?

Thanks

Answer

Ian Preston picture Ian Preston · Jun 7, 2013

By definition a table needs an associated DataSet.

If you only have one DataSet in a report it can use that by default, otherwise one will need to be specified.

If you don't want to associate the table with a DataSet, you could use one or more independent textboxes placed together to get the same results.

You can embed these textboxes in a Rectangle to keep them together when rendering the report.