File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Open a word file from a midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Open a word file from a midlet" Watch "Open a word file from a midlet" New topic
Author

Open a word file from a midlet

bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
Hi all,

I am developing a application in which the user can download the files(text,word,excel and pdf) from server.
I have no issues in downloading the file, but i want to open the file after the download completes.
is there any possibility to open the file.


Thanks in advance.
bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
Could any one help me out i am unable to open a word file from the phone memory using midlet
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42925
    
  68
If the device in question doesn't have viewer applications for those file formats, then you'll have to write them yourself. For Excel and Word the Apache POI library may be helpful, while for PDF the PDFRenderer library may be best.
bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
Thanks for the reply
bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
Hi Ulf,

I want to develop a midlet which should open a word application.

For example i am using Nokia E61 mobile in which i have stored a word document in the image folder and i want the midlet to open and show that file in word processor application.
Is this possible using j2me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42925
    
  68
The libraries I mentioned help with that on JSE. It's highly likely that they use classes that are not present in JME, though, but looking at their code may still be helpful.

Personally, I'd look into getting a proper doc viewer app that supports Word, Excel and PDF files instead of trying to do it in Java. It seems rather uncertain whether such an effort will be successful.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

"bhu boo",

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .

As far as opening documents goes, I have a phone whose OS is Windows Mobile, and even it can't open all MS-Word documents. The mobile versions of the MS-Office suite are considerably less powerful than the desktop versions.


Customer surveys are for companies who didn't pay proper attention to begin with.
bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
Hi,
bhuboo is my nick name and my full name is bhuvanesh
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Thanks!
bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
hi all,

I wasn't able to find any solution for opening a file from a midlet.

does any one could provide a solution for this.


Thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Do you have a built-in application that can open MS-Word files on the device (such as MS-Word Mobile?).
bhuvan esh
Greenhorn

Joined: Jul 17, 2009
Posts: 7
I have a word processor application that can open MS-Word files on the device
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Open a word file from a midlet