AIR application will open any ms-word or ms-excel files

2 views
Skip to first unread message

Lokh Prathab

unread,
Sep 3, 2009, 2:18:05 PM9/3/09
to Adobe Developers of Greater Orlando
H Folks,

Can AIR application will open any ms-word or ms-excel files
using flex 3 file systems ?

Thanks

Maxim Porges

unread,
Sep 4, 2009, 10:29:50 AM9/4/09
to ad...@googlegroups.com
Not directly. You could use Merapi to execute a system command through
Java, and that could tell the OS to have MS Word open the file for you.

http://www.merapiproject.net/

- max

Lokh Prathab

unread,
Sep 4, 2009, 10:55:09 AM9/4/09
to Adobe Developers of Greater Orlando

Hi Maxim,

My requirement is , by using air application, Just I want to
open the .doc or .xls file in the appropriate package. Here
restriction on using other technologies, Any possibilities there to
fix by
using air .
> > Thanks- Hide quoted text -
>
> - Show quoted text -

Lokh Prathab

unread,
Sep 8, 2009, 11:33:49 PM9/8/09
to Adobe Developers of Greater Orlando
HI Maxim,

Is it possible to open the doc or xls in appropriate packages
through air application.

Maxim Porges

unread,
Sep 9, 2009, 12:14:00 AM9/9/09
to ad...@googlegroups.com
What do you mean by "appropriate packages"?

- max

Lokh Prathab

unread,
Sep 9, 2009, 5:07:58 AM9/9/09
to Adobe Developers of Greater Orlando
Hi Maxim,

Here "appropriate packages" mean MS-WORD & MS-EXCEL .


Thanks

Lokh
> >>> - Show quoted text -- Hide quoted text -

Maxim Porges

unread,
Sep 9, 2009, 11:11:22 AM9/9/09
to ad...@googlegroups.com
Ah OK, now I understand.

Basically, what you will need to do is figure out the command for
opening the Word or Excel file from the command line in Windows. Once
you have that, you can use Runtime.exec() (http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#exec(java.lang.String)
) in Java to issue that command to the OS.

Once that is working, you need to use Merapi to run the Java code
with the call to Runtime.exec() on the local machine, and allow your
AIR app to call Merapi. Merapi will then hand your AIR call off to the
Java code, the Java code will call Runtime.exec(), and your command
will be issued to the OS as if it had come from the command line.

- max

Adam Flater

unread,
Sep 12, 2009, 12:59:36 PM9/12/09
to Adobe Developers of Greater Orlando
Hey guys.. if you're using Merapi systemExecute() is a built-in top
level function on the Flex side. So, for Windows you'd execute
something like "start file.doc".. it's not quite that simple, but you
can Google around a bit for the syntax.

Maxim Porges

unread,
Sep 12, 2009, 2:31:21 PM9/12/09
to ad...@googlegroups.com
Thanks Adam, that is good to know.

- max
Reply all
Reply to author
Forward
0 new messages