Click to See Complete Forum and Search --> : Generic Printer for OO1.1.2 in Slack10 Foulup


mhacleth
07-14-2004, 10:43 PM
I have setup slack10 successfully in my AthlonXP.
I have HP Laserjet 1150 connected to my box. KDE printing is okay (via CUPS) and KEdit, Kmail etc. can print off it.

However, my OO1.1.2 could not print off it.:rolleyes:
The only option it gives me is the Generic Printer and my Laserjet is not among the options (which is present in other Apps' print dialog). Printing off the Generic (SGENPRT) Printer won't work.

So I tried to go to my OO's install directory and run ./spadmin. I tried to add my printer but could not find my HPLaserJet 1150 in the list of printers. I checked the installed Generic printer and it uses the lpr command for printing.

I tried manually printing a ps file on the commandline by lpr -d Laserjet test.ps but it gives me this


sending job 'mhacleth@SlackMhac+221' to Laser@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - No such file or directory
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry

JohnT
07-14-2004, 11:01 PM
Go to "HELP" in the Open Office drop-down menu. Enter the search term "printers; adding, UNIX", scroll down to "Printer Drivers in the OpenOffice.org Software" for instructions.

mhacleth
07-14-2004, 11:17 PM
Thanks JOhn T!

Solution 1:
I went to linuxprinting.org and downloaded the PPD (hpijs) for HP Laserjet 1150.

Went back to ./spadmin and added the printer. However I am not sure what to put in the command line appropriate for the device. I left it blank and now I could not still print. Suggestions?

Solution 2:
I modified the Generic Printer commandline from *lpr* to *kprinter*. This opens up the kde print dialog (with my Laserjet accessible) and was able to print.

:confused:

JohnT
07-15-2004, 11:39 AM
From the OpenOffice Help files:
Adding a Printer
1.Go to the {installpath}/program directory.
2.Enter: ./spadmin
3.Click the New Printer button.
4.Select the Create Printer option and click Next.
5.Select the appropriate driver for your printer. If you are not using a PostScript printer or your model is not listed, use the Generic Printer driver or follow the steps below. You can also add new drivers using the Import button or delete unnecessary drivers using the Delete button. Click Next.
6.Choose a command line that you can use to print on your printer (for example, lp -d my_queue). (see the manpages for "lp"...man lp) Click Next.
7.Give the printer a name and determine whether it should become the default printer. Click Finish.
8.To print a test page, click on Test Page. If the test page fails to print or is incorrectly printed, check all settings as described in Changing Printer Settings.(search term in help....."printer program; spadmin, UNIX").

Loki3
07-15-2004, 11:47 AM
All spadmin does is add an Open Office frontend for a system command. Open Office doesn't (and shouldn't) handle printing. It just ships it off to a program you specify.

mhacleth
07-15-2004, 06:31 PM
Thanks John T!
I added the printer but the *lp -d* command won't work so I just used the *kprinter* command. Now it is printing nicely.

I realized what you said is true, Loki. OO just hands it off to the printing subsytem.

Thanks guys!

Mhac:p

JohnT
07-15-2004, 06:52 PM
There's a wealth of information worth exploring using the commandman lp it will give you paths to config files on your system plus many other options.

mhacleth
07-15-2004, 09:31 PM
I'll do what you say.

Mhac:)

pezplaya
07-15-2004, 09:46 PM
Originally posted by mhacleth
Thanks JOhn T!
Solution 2:
I modified the Generic Printer commandline from *lpr* to *kprinter*. This opens up the kde print dialog (with my Laserjet accessible) and was able to print.

:confused:

thank you SO much. I didn't know about that kprinter command. O man. It makes it so much easier no printing from mozilla and stuff, I am able to select the print quality from the properties menu instead of going through a bunch of junk before I print. Thanks again :)