Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2004

Tip: Looking for answers? Try searching our database.

Display .doc in an applet (w/o local lib)?

Thread view: 
Patrick Zesar - 14 May 2004 13:56 GMT
I need to display a Microsoft Word document inside an applet.

The only reliable library I found for this is the OfficeBean of
OpenOffice.org. But AFAIK, this Bean is required to have access to a
local install of OpenOffice (the .dll's etc)...

I can't install OpenOffice on every machine where I want to run the
applet (the applet is offered via our Intranet). Does anyone know a
library which I can load purely over the network (the size doesn't
matter - our LAN is fast enough)?

Thank you beforehand for hints, suggestions, comments, etc...
Patrick
Chris Smith - 14 May 2004 17:18 GMT
> I need to display a Microsoft Word document inside an applet.
>
[quoted text clipped - 6 lines]
> library which I can load purely over the network (the size doesn't
> matter - our LAN is fast enough)?

I'm not aware of any pure-Java library that can accomplish this.  You
can use the OpenOffice bean, or you can use JACOB to actually use Word
to display the document.

In either case, you'll need to sign the applet and get permission to do
so from the user.

A third potential option is to convert the Word document to a different
format prior to providing it to the applet.  You'll find more luck
displaying some non-proprietary formats like HTML or PDF.

Signature

www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Patrick Zesar - 14 May 2004 17:27 GMT
> I'm not aware of any pure-Java library that can accomplish this.  You
> can use the OpenOffice bean, or you can use JACOB to actually use Word
[quoted text clipped - 6 lines]
> format prior to providing it to the applet.  You'll find more luck
> displaying some non-proprietary formats like HTML or PDF.

that's what i thought - pity :-(

thank you for your trouble,
patrick
Roedy Green - 14 May 2004 18:09 GMT
>I need to display a Microsoft Word document inside an applet

I would google for a class. I gather you have already tried that.

Try looking for an RTF renderer.  MS changes its DOC format more often
than Bill changes his underwear. For years they tried to keep it a
proprietary secret.  The specs may be published by now.

If that fails try writing your own RTF renderer, or some subset.

I think Acrobat can eat Word documents and produced PDF. Perhaps there
lies some sort of solution there.  Word itself can produce HTML
documents.  The HTML is so ugly it will make you barf, but you might
have a chance of rendering it.

Word can also be teased into producing printer documents.  You might
find PostScript or HP Laserjet format more tractable.

In a pinch you can spawn word itself, or a word viewer and have it
render the document.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.