What is the best way to dynamically generate RDLC report definitions at runtime?

前端 未结 1 1125
死守一世寂寞
死守一世寂寞 2021-01-27 01:34

I have data that will be generated by users at runtime by performing queries. The shape of the data is unknown because users can choose which fields to bring back.

The a

相关标签:
1条回答
  • 2021-01-27 02:09

    I investigated this theme a year ago, searching for an object model to generate RDLs in memory. There wasn’t one, but there are rumors about. A quick investigation nowadays: An object model called RDLOM exists, but isn’t really supported by Microsoft.

    My actual approach uses a self generated object model build upon RDLs scheme.

    This is a less-than-ideal solution, because you need to know the generated object in detail and because the object creation code is really ugly. But the other workarounds I found in my investigation use XML or XSLT directly to generate the RDL and they are poor in their own way.

    0 讨论(0)
提交回复
热议问题