PDA

View Full Version : Setting up the kprinter-dialog in OpenOffice


benjaminq
06-07-2006, 04:42 AM
You may know the problem, OOorg detects the CUPS printers but you decided that you want to send the letter by FAX (facsimile) directly, or want to deploy a function that is only accessible through the native printing dialog of KDE. Here is how to get it working and keeping the OOorg solution in place:

As root in the command line you have to call the program "spadmin". If it does not come up you may want to do a "updatedb" (and wait for a minute or two) before searching the exact path to spadmin with "locate spadmin" e.g. /usr/lib/openoffice/program/spadmin (leave out all "")

Spadmin comes with a GUI to add new (and configure existing) printers for OOorg. Select "New printer", and "Connect a PDF converter", then select "The default driver". In the following you can define the appropriate commandline and the default printing directory. The command line should read kprinter --stdin Then you can label the printer as e.g. "a_kprinter_dialog" (to ensure it will be on top of the list). OK and finished.

OOorg will have to be restarted before you can select your new "printer" which will do nothing else than piping the job to kprinter where you can access all the functions that KDE provides.

BEnjamin