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

JAVA

    Sponsored Links

    Next

  • 1. better picture here - simple code
    Sorry for duplicate post, the previous post has messed up the image of *s. So what is wrong with my code ? (C) ********** ********* ******** ******* ****** ***** **** *** ** * import javax.swing.JOptionPane; public class Ex0510 { public static void main(String args[]) { int column=0; String output=""; for(int row = 1; row < 11; row++) { // output += " * "; for (column = 1; column < 11; column++) { if (column >row) output += " * "; else if (row >=column) output +=" "; } output +="\n"; } JOptionPane.showMessageDialog(null, output, "Printing *s", JOptionPane.INFORMATION_MESSAGE); System.exit(0); } }
  • 2. From one stream to another
    I have a PrintStream on which I wish to use one of the write() methods, probably write(byte[] b). What I want to write is the contents of an entire file of which I know the name. What is the easiest way of doing that? I realize that I can just make a byte array and use that as a buffer and read from the file and write to the stream. But isn't there an even easier way? /David
  • 3. Appending to a *.dat file
    Hi Just wondered if anyone knows a way to append some standard test to a *.dat file, without reading the whole thing in, adding to it and then writing the whole thing back to the file again. Thanks inadvance for your help Andy

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

Postby Patrick Zesar » Sat, 15 May 2004 21:56:05 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

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

Postby Chris Smith » Sun, 16 May 2004 01:18:50 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 
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.

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

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

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

Postby Patrick Zesar » Sun, 16 May 2004 01:27:35 GMT




that's what i thought - pity :-(

thank you for your trouble,
patrick

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

Postby Roedy Green » Sun, 16 May 2004 02:09:19 GMT

On Fri, 14 May 2004 14:56:05 +0200, Patrick Zesar
< XXXX@XXXXX.COM > wrote or quoted :


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.


-- 
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See  http://www.**--****.com/ 

Similar Threads:

1.problem with libraries in /usr/local/lib

I had installed libpng, libgd and some others in /usr/local/lib
several months ago and everything worked fine.  Today I tried
compiling something with libpng for the first time in awhile and
I get this error:

	ld: warning can't open dynamic library: libpng12.0.1.2.5.dylib (checking 
    for undefined symbols may be affected) (No such file or directory, errno = 2)

The file /usr/local/lib/libpng12.0.1.2.5.dylib exists and the permissions 
are correct.

I know I installed a security patch since things last worked, but
other than that nothing has changed on the system.  Is it really
possible for a security patch to have caused this problem?  Anyone
encounter something similar?  I am running Mac OS X 10.3.7.
 
Stephen

2.PackageMaker install problem (/usr/local/lib).

Hello all,

I made an application (MacOSX)  that uses a dynamic lib.
Both the application and lib are installed using a package *.pkg file, made
with PackageMaker.
On my computer both the application and lib install ok.

But a customer complains that the installation of the application is no
problem, but the lib file does not install.
It says something like: "You are not allowed to install the software in the
default location on the disk...".
It tries to install to /usr/local/lib and the customer says it have
administrator priveliges.

What can be wrong?
By the way, I run on 10.2.1, the cusotmer on 10.2.6.

All help is welcome, because I do not know where to look.

Regards, Cor Jansen.


3./usr/local/jdk1.4.1/jre/lib/security/cacerts

4.proble with displaying .doc ,pdf file in jsp

Hi All,

  I have to render  .pdf and .doc file using jsp.

Please sussgest me some solution.

Narayan

5.How do I display pdf doc in browser using jsp - no servelet

6. Display the content of .Doc file using JSP in html page

7. String[] files = {"a.doc, b.doc"}; VERSUS String[] files = new String[] {"a.doc, b.doc"};

8. /usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'typeid__XTQ2_3std9exception_' in load module '/usr/lib/libcryptograph2_64.sl'



Return to JAVA

 

Who is online

Users browsing this forum: No registered users and 64 guest