none
How to use the code to generate pdf or excel file from reportviewer in c#? RRS feed

  • Question

  • Hi all,

    Hope doing well,

    sir i am using one code where after getting the data from the table it is generating the file in excel or pdf.

    it's working fine but when if data is more like some 4000 or 5000 records it is taking more time to generate the file.

    here is the piece of code.

    " byte[] bytes = ReportViewer1.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);"

    when i am checking here through debugging in this line it's taking so much time to generate the report.

    how to make it fast??

    thanks


    vicky Bangalore

    Wednesday, September 18, 2013 12:23 PM