Printing from Java using OO remote connection

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
developer-si
Posts: 3
Joined: Mon Mar 23, 2009 10:23 pm

Printing from Java using OO remote connection

Post by developer-si »

Hello everyone!

I'm working on a application that already displays documents from a database. It is using a connection to a remote OpenOffice instance to convert documents to PDF. Also I would like to be able to print a displaying document. Is it possible with a connection to OpenOffice instance to achive this? So the Java Application holds a file in memory in byte[] form. The user must be able to choose one of installed printer in a print dialog and fire printing a document.

I would be thankfoul for any help.

Regards
OOo 3.0.X on MS Windows Vista + Linux Ubuntu
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Printing from Java using OO remote connection

Post by hol.sten »

developer-si wrote:Also I would like to be able to print a displaying document. Is it possible with a connection to OpenOffice instance to achive this? So the Java Application holds a file in memory in byte[] form. The user must be able to choose one of installed printer in a print dialog and fire printing a document.
I don't think that you can reach the printer you want to reach. I think that it is possible to print a document on a remotely running OOo. Your only problem is, that your file gets printed only on a printer on the remotely running server but not on your client where your Java application is running.
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Post Reply