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 / General / August 2005

Tip: Looking for answers? Try searching our database.

Java and OLE to MS Word (or OpenOffice) ?

Thread view: 
Ed - 26 Jul 2005 20:46 GMT
Hi
Im in the process of converting an application from a legacy language into
Java with Swing GUI and have a requirement to print MS Word documents which
contain bookmarked fields. The idea being that I update the bookmarks and
then print/save the document etc.

Can I do this ? and should I do this or is there a better way of handling
the printing ?

For info the MS Word documents are user maintined. ie they can load them up
into Word , mess around with the wording and then resave them and then start
the application and do things with the letters. Dont really want to convert
the 50+ templates into something else, would do so if necessary and user
editig could be maintained.

Lastly my company is trying to promote OpenOffice so maybe I should try and
get Java to talk to this (again with OLE?).

Thoughts and pointers would be appreciated.
jeak110 - 27 Jul 2005 08:40 GMT
about MS:
hm ... just look at this link http://jakarta.apache.org/poi/index.html.
It's working with MS. I didnt use it, because I find another variant to
work with MS Excel.

about OpenOffice: look into .sax files. It's xml.
Ed - 27 Aug 2005 00:30 GMT
Nope not what I looking for , this appears to allow access to the file
content, but what I want is to be able to control the MS application itself.
e.g. send it a command to load a word template , send it multiple field
names and field values and then tell it to print to its deafult printer.

Same goes for OpenOffice, I havent read about SAX but how could XML files
control OpenOffice.

Any more ideas
cheers
Ed

> about MS:
> hm ... just look at this link http://jakarta.apache.org/poi/index.html.
> It's working with MS. I didnt use it, because I find another variant to
> work with MS Excel.
>
> about OpenOffice: look into .sax files. It's xml.


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.