Hi All,
Can any one help me out in Reading Excel file in Flex-3

I tried following code with as3xls liabrary.

it is sending me error..

Error #2030: End of file was encountered.

When i tried excel with smaller size it worked fine..
but i may have larger files to read..

Any one have answer on this..

Code looks like****************************************

            import mx.controls.Alert;
            import mx.events.CollectionEventKind;
            import mx.events.CollectionEvent;
            import mx.controls.dataGridClasses.DataGridColumn;
            import mx.events.DataGridEvent;
            import com.as3xls.xls.ExcelFile;
            import com.as3xls.xls.Sheet;


            [Embed(source="D:\\Applications\\Flex\\ReadingExcel\\bin-
debug\\test.xls", mimeType='application/octet-stream')]
            private var xls:Class;
            private var sheet:Sheet;
            private function onCreate():void
                   {
                        var excelFile:ExcelFile = new ExcelFile();
                       excelFile.loadFromByteArray(new xls());
                       sheet = excelFile.sheets[0];
                       grid.dataProvider = sheet.values;

                  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to