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

    Hi,



    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?



    Regards,

    Mukesh

  • Replied 3 August 2017, 3:20 pm EST

    Hello,

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

             http://icodethereforeiam.blogspot.in/2010/04/tips-and-tricks-exporting-to-csv-using.html

    Please let em know if you need any assistance further.

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

    I created a custom CSV rendering extension here is my post of it: http://www.datadynamics.com/forums/142912/ShowPost.aspx



    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