AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printing MS Word from a JAVA application in a UNIX server

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Oz
Guest





PostPosted: Tue Apr 18, 2006 3:12 pm    Post subject: Printing MS Word from a JAVA application in a UNIX server Reply with 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)?


Thanks in advance.
Back to top
Rhino
Guest





PostPosted: Tue Apr 18, 2006 4:12 pm    Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve Reply with quote



"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





PostPosted: Tue Apr 18, 2006 8:12 pm    Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve Reply with quote



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





PostPosted: Wed Apr 19, 2006 9:12 am    Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve Reply with quote

I apologize for any inconvinient caused. I'll take your complain in
account for future posts.
Back to top
Oz
Guest





PostPosted: Wed Apr 19, 2006 9:12 am    Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve Reply with quote

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





PostPosted: Wed Apr 19, 2006 11:12 pm    Post subject: Re: Printing MS Word from a JAVA application in a UNIX serve Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.