GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #14569

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Contestcen@aol.com
Subject: Unable to print
Date: 21 Dec 2009, 02:42:14

I tried that statement, but it did not recognize  the command "net".  Also 
the Pascal program seems to bomb when I use any  value other than 'USB001' 
in the call to InitPrinter (or when I omit  InitPrinter).  The printer is 
connected directly to my computer by a USB  cable.  There is no local net.


Date: Thurs, Dec 17 2009 5:00 am  
From: "Zaphod Beeblebrox"  

"SirJohn" <contestcen@aol.com>  wrote in message  
news:dff19abd-9e4d-40c0-a4cb-d7aa8b66e7a3@j14g2000yqm.googlegroups.com...
>I  just moved to Windows 7, which means that I now connect to my
> printer  via a USB port instead of a serial port.  In those FPC
> programs  which use the printer I changed InitPrinter('LPT1') to
>  InitPrinter('USB001')  however, everything I print is now going to  a
> disk file named USB001 instead of to the printer.  What else do I  
> need
> to get this working?

Make sure the printer is  shared, and then use the following command to 
redirect LPT2 to the  printer:

net use LPT2: \\computername\printername  /persistent:yes

Replace 'computername' with your computer name, and  'printername' with 
the share name of your printer.  After you've run  the command, you 
should be able to use InitPrinter('LPT2') in your  program.

BTW, you want to use LPT2 since from what I've read, if the  printer 
port actually exists, Vista and Windows 7 won't let you redirect to  
it.

Hope this helps.  



Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).