aspose file tools
The moose likes JSP and the fly likes Word Object in Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Word Object in Jsp" Watch "Word Object in Jsp" New topic
Author

Word Object in Jsp

jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well i want to automate Word Object in Jsp how i make it possible.
Jawwad Ahmed
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
A Word Object- like a Sentence object??
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
No I mean Like wih OLE u can any object whether it is Exel,spreadsheet or word object.I hope now u understand my question.
Waiting for reply
Jawwad Ahmed
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12325
    
    1
Do you want to pull data out of the Word object to create an HTML page or do you want to send the Word document?
Bill
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well i want to embed word view (like u add control in vb)and populate it with data.Thats the same thing i want to do.Will be great ful
Thanks
Jawwad Ahmed
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12325
    
    1
Where does this Word data live - on the web server or on the client?
Bill
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well data lies on the server side and populate on according to client request in the word and the word is displyed on the explorer.Thanks
Jawwad Ahmed
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12325
    
    1
Possibility 1.
Save Word document as RTF - use methods in the javax.swing.text.rtf.RTFEditorKit package to pull the data out. I have never done this but a Yahoo search on "word document in Java" found references.
Possibility 2.
The Apache POI Project may have gotten somewhere in their tools for Word documents. I have not checked recently. POI stands for Poor Obfuscation Implementation.
Bill
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Thanks i will find it out
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

I found both JDK1.3 and JDK1.4 API telling about RTFEditorKit that it will be improved. Anyway, we can start using it. I need two functionalities in my Swing based application.
(1) Saving texts of a JEditorPane or JTextArea as an RTF document.
(2) Opening an RTF document and rendering that's content to a JEditorPane or JTextArea.
So its basically preparring an RTFEditor in Java. According to API, these should be done using the write and read methods respectively.
Let me try and report you.


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Thanks If u try pleasse let me know
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Word Object in Jsp
 
Similar Threads
showing html table borders on word while displaying html page in ms word
"circular referencing..." a memory hog??
Reading word document
[only Constructor]...
jsp page contents in the word document