How to generate an RDLC file using C# during runtime

后端 未结 5 1117
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 07:38

I\'m doing some application development (CRM solution) which require generating diagrammatically an RDLC file at runtime. How do I do that?

5条回答
  •  孤独总比滥情好
    2021-02-07 07:51

    You should consult this link it might be helpful

    How to dynamically add new columns to report created with Reporting Services?

    RDLC Report is a XML file and by editing it in XMLDocument you can modify locate /Report/Body/ReportItems/Table node and do the following inside it

    • define the header of a new column – add a new TableCell inside Header node
    • bind the column with data (from DataTable) – add a new TableCell inside Details node
    • define the width of the colum – add a new TableColumn inside TableColumns

提交回复
热议问题