| View previous topic :: View next topic |
| Author |
Message |
Oz Guest
|
Posted: Tue Apr 18, 2006 3:12 pm Post subject: Printing MS Word from a JAVA application in a UNIX server |
|
|
Hi,
I have the following issue:
I am migrating a java application in a Unix server that used to use a
commercial product to connect with a Windows server to print and
process ms word files (from a .doc template and an xml file containing
data the process birngs back a .prn file to print in a print server and
a .doc itself).
Now we are getting rid of the commercial product, what means that I'm
doing everything in the Unix server. The process is quite easy to code
because I just saved the templates as .xml documents (thanks to office
2003), but I'm stuck with the printing problem.
How can I print a word document (without loosing format) in a Unix
server from a java application? How can I get a printing document (as I
used to get a .prn)?
Thanks in advance. |
|
| Back to top |
|
 |
Rhino Guest
|
Posted: Tue Apr 18, 2006 4:12 pm Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve |
|
|
"Oz" <oz123456 (AT) hotmail (DOT) co.uk> wrote in message
news:1145371018.072005.234430 (AT) z34g2000cwc (DOT) googlegroups.com...
| Quote: | Hi,
I have the following issue:
I am migrating a java application in a Unix server that used to use a
commercial product to connect with a Windows server to print and
process ms word files (from a .doc template and an xml file containing
data the process birngs back a .prn file to print in a print server and
a .doc itself).
Now we are getting rid of the commercial product, what means that I'm
doing everything in the Unix server. The process is quite easy to code
because I just saved the templates as .xml documents (thanks to office
2003), but I'm stuck with the printing problem.
How can I print a word document (without loosing format) in a Unix
server from a java application? How can I get a printing document (as I
used to get a .prn)?
Please don't multipost. If you're not sure which newsgroup to use, it is |
possibly acceptable to crosspost to the newsgroups that look like the right
ones if you only do it once or twice. But you should then learn the intended
purpose of each newsgroup and choose the right newsgroup each time. It is
better still to find the FAQ that describes the intended use of each
newsgroup.
Multiposting has the potential to waste a lot of time for the people that
independently answer your question without knowing that you've asked it
elsewhere; you might have already received an answer on those other
newsgroups.
--
Rhino |
|
| Back to top |
|
 |
Lothar Kimmeringer Guest
|
Posted: Tue Apr 18, 2006 8:12 pm Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve |
|
|
Oz wrote:
| Quote: | Now we are getting rid of the commercial product, what means that I'm
doing everything in the Unix server. The process is quite easy to code
because I just saved the templates as .xml documents (thanks to office
2003), but I'm stuck with the printing problem.
How can I print a word document (without loosing format) in a Unix
server from a java application? How can I get a printing document (as I
used to get a .prn)?
|
Save the DOCs to the OpenOffice- or OpenDocument-format and use
the Java-API of OpenOffice to load and print the document.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamfang (AT) kimmeringer (DOT) de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions! |
|
| Back to top |
|
 |
Oz Guest
|
Posted: Wed Apr 19, 2006 9:12 am Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve |
|
|
I apologize for any inconvinient caused. I'll take your complain in
account for future posts. |
|
| Back to top |
|
 |
Oz Guest
|
Posted: Wed Apr 19, 2006 9:12 am Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve |
|
|
Hi Lothar,
Thanks so much for the answer. The only problem is that OpenOffice is
not a validated product in the company and the systems people refuse to
install it.
Do you know any other alternative?
Once again, thank you so much. |
|
| Back to top |
|
 |
Lothar Kimmeringer Guest
|
Posted: Wed Apr 19, 2006 11:12 pm Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve |
|
|
Oz wrote:
| Quote: | Thanks so much for the answer. The only problem is that OpenOffice is
not a validated product in the company and the systems people refuse to
install it.
Do you know any other alternative?
|
Use WINE to run Word and the OLE-API shipped with SWT to connect
to it.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamfang (AT) kimmeringer (DOT) de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions! |
|
| Back to top |
|
 |
|