Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1590
Not creating the excel file for large Datatable throwing error
posted

Hi,

I am using INfragistic EXCel to create a Excel file in server folder[Service layer]. It creates a file only if datatable has very few records.
if dataTable has more records than it throws a Exception "Stream does not support reading". Please let me know the issue and resolution.
Even i have mention the Format for columns its not applying.

I have attached the code file along with the mail. Could you please look into my code and update the same.

Thanks

Anil

Parents
No Data
Reply
  • 44743
    posted

    This sounds like something that was fixed already. What version are you using and do you have the latest service release installed?

    Also, you can work around this by passing a MemoryStream to the Workbook.Save method. When it returns, write that stream to the file.

Children