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
215
Occurred a ArgumentOutOfRangeException
posted

Hi~
I used a Microsoft Office Open XML SDK 2.0 to make a Excel File.
And I tried to export a Grid to the Excel file.
But ArgumentOutOfRangeException was occurred.
The exception message is "Index was out of range. It must be non-negative and less than the size of the collection".
It may be Target of Relationship.
The Target' value is "/xl/worksheets/sheet.xml".
Is it right?
please help me.
What should I do?
thanks~~

 

 

p.s : I was called UltraGridExcelExporter.Export() method to export a grid data.

sample.xlsx.zip
Parents
No Data
Reply
  • 469350
    Offline posted

    There's not much information here to go on. The sample you attached here appears to be an ASP.Net application. So are you exported a WebGrid to the xlsx file?

    Also, I don't see any xlsx files in your sample. Are you trying to export the grid into an XML file? I don't believe that will work.

Children