How can I add unknow Table as source for XtraReport

362 Views Asked by At

I'm sorry for not being able to explain this but now I'll elaborate what I want to do. I'm working on a .NET software(Windows Form, C#) with SQL Server, I'm using devexpress xtrareport(First time actually) for report printing and here comes my porblem, I have a table (let's call it invoice table) and it contains a column for products which contains table name for the products table of that invoice, each time the product table is new and I don't know how can I print that product table? How can I even add it as a datasource when It's not created yet.

1

There are 1 best solutions below

0
On

you should not use the stock SqlDataSource, instead you should use the ObjectDataSource so you will manually fill the DTO and pass it to report