Importing Excel file into Flex

473 views
Skip to first unread message

Raj

unread,
Jul 31, 2008, 7:53:47 AM7/31/08
to flex_...@googlegroups.com
Hi Group

Any Idea anyone how to import a binary file ( know format) say a excel
file into Flex. Hope adobe working on it.


thanx
Raj

sasi

unread,
Jul 31, 2008, 8:51:52 AM7/31/08
to Flex India Community
hi raj
frist u can change the excel file in to xml format
and use it in flex app
u have opstion in excel to change excel file into xml use it

Abdul Qabiz

unread,
Aug 5, 2008, 4:46:51 PM8/5/08
to flex_...@googlegroups.com
Hi

I have not done it personally but it should be possible to do it on server, which you would it anyway while uploading the file (not assuming you are using Flash Player 10 which has new FileReference capabilities).

Check out for any libraries (which suite your server-side environment) and use it for excel to data-format (which Flex understands) conversion.

I am sure, you can write a library in ActionScript to do excel parsing, but that's gonna take sometime (even when you port any of open-source libs to AS 3.0). The quicker way is to check, if someone has already solved problem and you can learn from it without reinventing the wheel.

-abdul
--
-abdul
---------------------------------------
http://abdulqabiz.com/blog/
---------------------------------------

greg h

unread,
Aug 5, 2008, 5:41:02 PM8/5/08
to flex_...@googlegroups.com
In addition to Sasi & Abdul's great suggestions ...

The AIR runtime can directly open local files (which you can not do when targeting the Flash Player runtime, due to FP's security sandbox).  You could use your Flex skills + the AIR APIs to open and parse any file.  Unfortunately, I know of no published solutions (yet) detailing using Flex in AIR to open Excel files.

Following are various links related to Flex to Excel communication (plus a link related to Abdul's suggestion about using serverside logic to process the Excel file).

Link #1:  In browser, targeting Flash Player, using two ActiveX objects embedded in an HTML page.  Provides instant as well as on demand data synchronization between the objects. ActiveX object #1 is the Flash Player itself (with the Flex application executing in it). ActiveX object #2 is a Spreadsheet from Microsoft Office Web Components (OWC):
Links #2 & #3:  In browser, targeting Flash Player, using cut-and-paste from Flex to Excel:
Link #4:  Server side using ColdFusion:
Please post back if you develop a solution that you find satisfactory for importing Excel files into Flex (even if targeting AIR).

hth,

g

devg

unread,
Aug 9, 2008, 12:48:56 PM8/9/08
to Flex India Community
Another solution is at http://www.d-w-systems.com/products.html. They
have a server that reads/writes to excel files and make this data
available to Flex by using HTTPService.

Dev

brij

unread,
Aug 11, 2008, 1:43:21 AM8/11/08
to Flex India Community
Hi Raj,

There is a good book named: Rich Internet Applications with Adobe Flex
and Java by Yakov Fain, Dr. Victor Rasputnis.

They have one example to integrate flex and excel. But here in this
example they are not inserting an excel file in flex application per
se.

But they are using ExternalInterface API's and ActiveX to
communication between fled datagrid and excel.

Regards,
Brijesh

swapnil

unread,
Aug 12, 2008, 7:06:31 AM8/12/08
to Flex India Community
Hi Raj,

I have 1 suggestion, use JavaScript for this purpose if you are
talking about client side excel import or use JSP or .Net if your
excel is on server side.

Regards
Swapnil
Reply all
Reply to author
Forward
0 new messages