How to create report (RDLC) without database?

后端 未结 5 2010
梦毁少年i
梦毁少年i 2020-12-29 05:02

Problem

When you create a report (RDLC) the datasource seems to be only this or that database. Is there any way to convince VS to establish a link to memory data s

5条回答
  •  醉话见心
    2020-12-29 05:44

    You can manually create a DataTable object, populate the Columns collection in there, then call NewRow(). Take the result of that and fill the fields, then pass it to Rows.Add(). That's what I've been doing (really don't like rdlc, it's so slow and clunky compared to html).

提交回复
热议问题