File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Print MS Office documents using unix commands Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Print MS Office documents using unix commands" Watch "Print MS Office documents using unix commands" New topic
Author

Print MS Office documents using unix commands

Latha Sree
Greenhorn

Joined: Apr 07, 2009
Posts: 17
Hello Friends,

Can anyone please help me how to print MS Office documents using unix commands.
With lp and lpr commands, it is giving the following error
lp: unable to print file: client-error-document-format-not-supported

Please suggest me how to print doc files in unix
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
I don't think there are *any* printers that support direct printing of MS Office documents. Using OpenOffice in server mode through its Java API is one way of doing this.

You seem to have lots of different questions about printing of documents - maybe if you told us what the overall problem is you're trying to address we can point to solutions that address it in full, instead of piecemeal for each question.
Latha Sree
Greenhorn

Joined: Apr 07, 2009
Posts: 17
Ulf Dittmer wrote:I don't think there are *any* printers that support direct printing of MS Office documents. Using OpenOffice in server mode through its Java API is one way of doing this.

You seem to have lots of different questions about printing of documents - maybe if you told us what the overall problem is you're trying to address we can point to solutions that address it in full, instead of piecemeal for each question.



Hello,

Sorry for late reply..
I found that best solution to print files is by using unix command,lp..It is very simple to do..
But..it too has some limitations.
it doesnt support some formats.
Now..I want MS Office documents to be printed..By any way..
i.e. unix or java program or convert docs to PDF and then print.
Please suggest any way to achieve it.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
Ulf Dittmer wrote:Using OpenOffice in server mode through its Java API is one way of doing this.
Latha Sree
Greenhorn

Joined: Apr 07, 2009
Posts: 17
Ulf Dittmer wrote:
Ulf Dittmer wrote:Using OpenOffice in server mode through its Java API is one way of doing this.


Hiii

Thanks for your response..
Could you please help me out with some sample examples.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Print MS Office documents using unix commands