| View previous topic :: View next topic |
| Author |
Message |
stolzpet Newbie

Joined: 03 Nov 2004 Posts: 1
|
Posted: Wed Nov 03, 2004 4:42 am Post subject: OpenOffice 1.1.3 / kprinter |
|
|
Hallo,
I installed OpenOffice 1.1.3 on SuSE Linux 9.2.
Now there's no possibility to print with the kde print system (kprinter).
I tried to install kprinter as a generic printer with spadmin but this does not work!
Can someboy help?
Peter Stolz  |
|
| Back to top |
|
 |
r_vinoya Super User


Joined: 03 Dec 2003 Posts: 619 Location: Somewhere in the Philippines
|
Posted: Mon Nov 08, 2004 9:32 pm Post subject: |
|
|
I'm not familiar with installations... But here we use Linux CUPS (Common UNIX Printing System) _________________ # : - ) |
|
| Back to top |
|
 |
andreas.oelkers Newbie

Joined: 18 Nov 2004 Posts: 1
|
Posted: Thu Nov 18, 2004 3:08 pm Post subject: Re: OpenOffice 1.1.3 / kprinter |
|
|
| stolzpet wrote: | Hallo,
I installed OpenOffice 1.1.3 on SuSE Linux 9.2.
Now there's no possibility to print with the kde print system (kprinter).
I tried to install kprinter as a generic printer with spadmin but this does not work!
Can someboy help?
Peter Stolz  |
the solution is a simple shell script. ( i choose /tmp/kprinter as example. choose a different directory. /tmp gets cleaned fairly often)
vi /tmp/kprinter
#!/bin/bash
export HOME=/dev/shm/$$/
export PATH=$PATH:/opt/kde3/bin
export DISPLAY=:0.0
cat | /opt/kde3/bin/kprinter -d printer_name_you_want_to_use --stdin
then define a Local Raw Printer with type command pipe
with Device URI pipe:/tmp/kprinter
before your first print the cups server needs access to your display
on the shell type in
xhost +
now try to print to your Local Raw Printer
the first print needs some time, because the access rights for the cups server will be configured.
the kprinter screen should pop up now.
PS: there are tow problems with this solution.
1. if you select the pipe printer in the kprinter dialog you get an endless loop. you need to cancel this job before you can continue printing
2. xhost + will give everyone acces to your display. if this is not acceptebel you have to implement acces only for the user lp
cu
me
Last edited by andreas.oelkers on Sat Nov 20, 2004 3:46 am; edited 1 time in total |
|
| Back to top |
|
 |
jonb Newbie

Joined: 07 Dec 2004 Posts: 2
|
Posted: Tue Dec 07, 2004 8:48 am Post subject: Use pdf printer |
|
|
A better way with no apparent drawbacks is to
add the printer as a pdf converter.
Then select 'A specific driver...'
generic printer (T42 enabled)
and then put in the command you want (e.g. /opt/kde3/bin/kprinter --stdin)
and call it 'Kprinter' or some such.
This works as you'd expect with ownerships, permissions all ok.
But what I don't understand, is why OpenOffice shows all the
instances I have set up in KDEprint (for pamphlet printing etc) very nicely,
but fails to acutally run the filters for these instances!
So somehow it is spotting the instances, yet not using them properly with kdeprint.
I'm pretty sure I used to use these in suse 9.0, but now it doesn't work.
Or am I imagining what I thought I could remember (getting old??!! ). |
|
| Back to top |
|
 |
plaurier Newbie

Joined: 07 Feb 2005 Posts: 1
|
Posted: Mon Feb 07, 2005 4:40 am Post subject: Post subject: OpenOffice 1.1.3 / kprinter |
|
|
In order to user kprinter under OpenOffice use the following procedure :
- open the directory where your OOo programs reside (mostly : /usr/lib/openoffice/program
- launch spadmin
- modifiy the default printer setup
- replace : 'lp' by 'kprinter'
- save
- done
Now when you print from OOo you should have the Kprinter panel poping up. |
|
| Back to top |
|
 |
|