This is a migrated thread and some comments may be shown as answers.

Error When Export xlsx with RadDocument

1 Answer 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hung
Top achievements
Rank 1
Hung asked on 04 Dec 2014, 02:50 AM
var workbook = CreateWorkBook(grid, settings);
 
                     if (workbook != null)
                     {
                         var provider = new XlsxFormatProvider();
                         using (var output = dialog.OpenFile())
                         {
                             provider.Export(workbook, output);
                             fileName = dialog.FileName;
                         }
                     }

I use your demo for my project. But some time I get Error : the writer is closed or in error state.
Any Idea about this error.
It happen  in line: provider.Export(workbook, output);
Thanks

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 08 Dec 2014, 12:40 PM
Hello Hung,

It is hard to say what might be causing this error based on the provided information. Could you elaborate on your scenario, please? Does this issue occur regardless of the contents in the RadGridView or is it reproducible in specific circumstances? Also, could you please send us the full stack trace of the exception?

Any additional information you feel is relevant would also be appreciated. We're looking forward to hearing from you.

Regards,
Petya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Hung
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or