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

ExportToExcelML Index out of range error

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Llorens Mathieu
Top achievements
Rank 1
Llorens Mathieu asked on 03 Nov 2009, 10:54 AM
Hello,
I have a Winform RadGridView binded to a datatable. When I want to export it to excel I have an "index out of range" exception.
Some of columns are hidden, some of columns are in the columnChooser.

Dim exporter As New ExportToExcelML(documentTop.DataGrid) 
exporter.SheetMaxRows = ExcelMaxRows._65536 
exporter.ExportVisualSettings = True 
Dim fileName As String = "c:\ExportedData.xls" 
exporter.RunExport(fileName) 

I'am using the code sample found in the documentation but it crashes on RunExport method.

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 05 Nov 2009, 08:13 AM
Hello Llorens Mathieu,

Thank you for writing. Your description is very similar to a known issue with ExportToExcelML. It has been already addressed and the fix is available in Q3 2009 release. Please, download it and give it a try. Let me know if you still experience any issues.

Best wishes,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Llorens Mathieu
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or