简体   繁体   中英

How can I add unknow Table as source for XtraReport

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.

您不应该使用库存的 SqlDataSource,而应该使用ObjectDataSource,这样您将手动填充 DTO 并将其传递给报告

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM