Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

419 views
Skip to first unread message

Sanjay Arora

unread,
Oct 3, 2011, 7:02:03 AM10/3/11
to harbou...@googlegroups.com
Hello all

I am trying to configure LPD/LPR or any other raw printing method (non-cups) to print from a Fedora 15 machine that does not have a serial or parallel port. 

While I can create the SMB printer from the Printers GUI screen, it does not get enabled or even print a test page. I think the issue is that Harbour software prints to a device that does not exist. I think I need to create a device file & redirect it to the smb share or something similar....or somehow get Harbour to print to a non-LPT1 device i.e. the samba windows share directly, but maybe I'm wrong.

Can someone please tell me what to do, to enable printing to a non-existant lpt1, which is redirected to a remote windows machine having a shared dot matrix printer.

OR can Harbour be configured to print directly to a Network printer? Any pointers to Linux configurations or Harbour printing code will be greatly appreciated.

With best regards & thanks.
Sanjay.

Przemysław Czerpak

unread,
Oct 3, 2011, 7:08:34 AM10/3/11
to harbou...@googlegroups.com
On Mon, 03 Oct 2011, Sanjay Arora wrote:

Hi,

> Can someone please tell me what to do, to enable printing to a non-existant
> lpt1, which is redirected to a remote windows machine having a shared dot
> matrix printer.

set printer to "|lpr -Plp_smb"

lp_smb is any printer name defined in your system.

best regards,
Przemek

Claudia Neumann

unread,
Oct 3, 2011, 7:21:38 AM10/3/11
to harbou...@googlegroups.com
Hi Sanjay,

I have configured all printers local or network or print server to print as raw
printer in CUPS. I even print on an old 24-needle printer as raw printer
connected via an usb-parallel-adapter with CUPS over USB hal device.

In harbour you either do

set printer to " | lpr -P <your-CUPS-Printer-name>"

or

set printer to <filename>

<do some output>

set printer to

run("lpr -P <your-CUPS-Printer-name> <filename>")

or you use hbcups to be found in /contrib.

What exactly do you want to know?

Best regards

Claudia

Sanjay Arora

unread,
Oct 3, 2011, 8:33:09 AM10/3/11
to harbou...@googlegroups.com
Claudia

Thank you very much for your pointer...I had not modified the SET PRINTER TO line...let me test this & I'll revert with specific problems, if any...

My thanks.

With best regards.
Sanjay.


--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

Reply all
Reply to author
Forward
0 new messages