OpenOffice command line only prints to default printer

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
USOO
Posts: 8
Joined: Tue Jun 01, 2010 8:51 pm

OpenOffice command line only prints to default printer

Post by USOO »

When using open office to print via the command line it appears to print only to the default printer?

For example, I have 2 printers installed: HP6500 and HP4200, with HP4200 as the default.
HP4200 is a local shared printer and HP6500 is a network shared printer, both installed on my-laptop.
I can print to both successfully from the OpenOffice application but not from the command line.

For example:

> soffice.exe -pt "\\my-laptop\HP6500" c:\temp\PrinterTest.txt
and
> soffice.exe -pt "\\my-laptop\HP4200" c:\temp\PrinterTest.txt
and
> soffice.exe -pt "\\YaddaYaddaYadda" c:\temp\PrinterTest.txt

... all print to the default printer HP4200 only ... If I make HP6500 the default printer, it prints there!
Any suggestions on how to be able to print to the non-default printer???

(Note: I see the -p option always prints to the default printer, could this be a bug with the -pt option where it is behaving like -p ?)

Environment: Tried OpenOffice 3.3.0, 3.4.1 and 4.0.1 on Windows 7
OpenOffice 3.2 on Windows Vista
User avatar
Villeroy
Volunteer
Posts: 31348
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice command line only prints to default printer

Post by Villeroy »

\\Yadda\Path\Name is a Windows specific notation.

Under Linux I can use

Code: Select all

soffice -pt Canon-IP4700-series homecast.odt
The printer is a network printer with a system wide name.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply