LPT1 to lpr

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
shanku
Level 1
Level 1
Posts: 8
Joined: Mon Nov 24, 2008 2:41 am

LPT1 to lpr

Post by shanku »

Hi,
can I map LPT1: to a command e.g. "|lpr"

How can I use this? From my applications I only see the printers from
my CUPS. How can I use a pritner like LPT1:
now I'm using Wine 1.1.9
Regards,

Shanku
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: LPT1 to lpr

Post by vitamin »

shanku wrote:Hi,
can I map LPT1: to a command e.g. "|lpr"
Yes, just edit registry. Ex:

Code: Select all

[HKLM\System\CurrentControlSet\Control\Print\Printers\mx310series]
"Port"="|lpr"
shanku wrote:How can I use this? From my applications I only see the printers from
my CUPS. How can I use a pritner like LPT1:
now I'm using Wine 1.1.9
Same way as a normal printer - you select it then print to it.
shanku
Level 1
Level 1
Posts: 8
Joined: Mon Nov 24, 2008 2:41 am

Post by shanku »

Thanks for your reply.....
But printing was not done ...
I'm configure a network Dot Matrix printer which was configure by CUPS. When I print at Linux Terminal command is below

shanku:~/Desktop #lpr - l FILENAME.TXT

Print was OK but When I print through wine

shanku:~/Desktop # wine cmd
CMD Version 1.1.9

Z:\root\Desktop>type FILENAME.TXT > prn

Print was not done

Please Help me

Shanku



:(
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

shanku wrote:Z:\root\Desktop>type FILENAME.TXT > prn
2 things:
1. NEVER run Wine as root: http://wiki.winehq.org/FAQ#head-96bebfa ... 78b0d41014
2. Use notepad to test printing. Wine's cmd has all sorts of problems
shanku
Level 1
Level 1
Posts: 8
Joined: Mon Nov 24, 2008 2:41 am

Post by shanku »

I solve my problem

shanku:~ # wine cmd
CMD Version 1.1.9

Z:\root>/usr/bin/lpr - l FILENAME.TXT


Shanku
Locked