Getting List of columns from dataset in c# class

Posted by: muks on 3 August 2017, 3:20 pm EST

  • Posted 3 August 2017, 3:20 pm EST


    We are storing our data dynamics report file in database. We have to generate pdf and csv file from the report template. Generating pdf file is straight forward.

    For generating csv file we need to fetch the list of columns from the datasets defined in report template in c# class.

    How can I implement the above requirement?



  • Replied 3 August 2017, 3:20 pm EST


    You can go through the following article and see if it helps:


    Please let em know if you need any assistance further.

    Manpreet Kaur
  • Replied 3 August 2017, 3:20 pm EST

    I created a custom CSV rendering extension here is my post of it:

    The advantage of mine over the XSLT approach from the blog is that it works with any report design without creating a XSLT transform for every report and it's also much faster which helps if there is a lot of data in the report.

    You can also just use the Excel renderer, then save as CSV from Excel.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels