dbTalk Databases Forums  

Windows Printer

comp.databases.pick comp.databases.pick


Discuss Windows Printer in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BobJ
 
Posts: n/a

Default Windows Printer - 01-30-2006 , 06:07 AM






FWIW Windows XP Prof now supports printing to a windows printer - the
cheapies - with a script or from the command line. Not sure when this
happened but it is a feature that I am finding very useful. Of course I may
be the only one who didn't know this.

print /d:\\ServerName\ShareName C:\folder\some.txt

Note that / means option and d means device not drive. Why the : after D? I
have no idea, but it works for me. This seems to work on any networked
printer that is running on a late version of XP Prof but I have not tried it
on XP Home.
There is a rain dance required with UV or jBase to make the mapped drives
and printers work but most seem to know how to do that.
BobJ



Reply With Quote
  #2  
Old   
BobJ
 
Posts: n/a

Default Re: Windows Printer - 01-30-2006 , 06:13 AM






False alarm. The printer said in a loud, clear voice ''printing started''
and then ''printing complete'' but it lied. Has anyone been able to solve
this in a reasonable fashion? My current work-around is to place the
formatted output in a .txt file and then invoke Notepad. Very ugly.
BobJ

"BobJ" <bobj (AT) wildblue (DOT) net> wrote

Quote:
FWIW Windows XP Prof now supports printing to a windows printer - the
cheapies - with a script or from the command line. Not sure when this
happened but it is a feature that I am finding very useful. Of course I
may be the only one who didn't know this.

print /d:\\ServerName\ShareName C:\folder\some.txt

Note that / means option and d means device not drive. Why the : after D?
I have no idea, but it works for me. This seems to work on any networked
printer that is running on a late version of XP Prof but I have not tried
it on XP Home.
There is a rain dance required with UV or jBase to make the mapped drives
and printers work but most seem to know how to do that.
BobJ




Reply With Quote
  #3  
Old   
scott.myron@steelox.com
 
Posts: n/a

Default Re: Windows Printer - 01-30-2006 , 10:59 AM




BobJ wrote:

Quote:
FWIW Windows XP Prof now supports printing to a windows printer - the
cheapies - with a script or from the command line.

print /d:\\ServerName\ShareName C:\folder\some.txt

Hmmm... try running "net use" at the command line and see what print
devices are defined. Should see something like:

Status Local Remote
OK LPT2 \\ServerName\ShareName

Using that device name, try printing using command similar to the
following:

print /d:LPT2 C:\folder\some.txt

Should work, as the print command has been around as far back as I can
remember.



Reply With Quote
  #4  
Old   
BobJ
 
Posts: n/a

Default Re: Windows Printer - 01-30-2006 , 03:28 PM



Net use does not display printers that are not on a Lpt port and mine are
USB. I thought that MS might have fixed that with the major revision to the
command line that is part of Net framework 2.0. Maybe it is in there
because it is not clear how to invoke the new .CMD when not using VS so
perhaps the old version is running. I'll just keep tugging and pull it out
of its hole eventually. If there is any interest I'll post the method when
and if I find it.
BobJ
<scott.myron (AT) steelox (DOT) com> wrote

Quote:
BobJ wrote:

FWIW Windows XP Prof now supports printing to a windows printer - the
cheapies - with a script or from the command line.

print /d:\\ServerName\ShareName C:\folder\some.txt


Hmmm... try running "net use" at the command line and see what print
devices are defined. Should see something like:

Status Local Remote
OK LPT2 \\ServerName\ShareName

Using that device name, try printing using command similar to the
following:

print /d:LPT2 C:\folder\some.txt

Should work, as the print command has been around as far back as I can
remember.




Reply With Quote
  #5  
Old   
Peter McMurray
 
Posts: n/a

Default Re: Windows Printer - 01-30-2006 , 03:34 PM



Hi Bob
To work from D3 spooler there is an excellent product called Dosprn. The
setup is well described on the D3 support site. Peter McMurray
"BobJ" <bobj (AT) wildblue (DOT) net> wrote

Quote:
FWIW Windows XP Prof now supports printing to a windows printer - the
cheapies - with a script or from the command line. Not sure when this
happened but it is a feature that I am finding very useful. Of course I
may be the only one who didn't know this.

print /d:\\ServerName\ShareName C:\folder\some.txt

Note that / means option and d means device not drive. Why the : after D?
I have no idea, but it works for me. This seems to work on any networked
printer that is running on a late version of XP Prof but I have not tried
it on XP Home.
There is a rain dance required with UV or jBase to make the mapped drives
and printers work but most seem to know how to do that.
BobJ




Reply With Quote
  #6  
Old   
Ross Ferris
 
Posts: n/a

Default Re: Windows Printer - 01-30-2006 , 08:36 PM



Bob,

I don't suppose you are using AccuTerm? IIRC you could set Accuterm uip
to use "graphics" printing (rather than straight text). In D3 you could
then SP-ASSIGN AS, and provided the correct printer was selected in
AccuTerm, everything worked out.


Reply With Quote
  #7  
Old   
BobJ
 
Posts: n/a

Default Re: Windows Printer - 01-31-2006 , 02:30 AM




"Ross Ferris" <rossf (AT) stamina (DOT) com.au> wrote

Quote:
Bob,

I don't suppose you are using AccuTerm? IIRC you could set Accuterm uip
to use "graphics" printing (rather than straight text). In D3 you could
then SP-ASSIGN AS, and provided the correct printer was selected in
AccuTerm, everything worked out.

Yeah, I'm using Accuterm - on UV - but that's a good lead. Thanks,
Ross.
BobJ




Reply With Quote
  #8  
Old   
BobJ
 
Posts: n/a

Default Re: Windows Printer - 01-31-2006 , 03:48 AM



Found a shareware program that works:
http://www.dosprn.com/

It may not be ugly but it is homely. In UV you must first put the item
to be printed in a .TXT file then:
DOS
copy drive:\filename.txt c:\prnspl
EXIT

In jBase you do not need the DOS and EXIT commands but you have to make
sure that you are using the OS copy rather than the Pick copy.
There are probably better methods but this kludge at least gets the
stuff to a printer. Format is another story.
BobJ

"Peter McMurray" <excalibur21 (AT) bigpond (DOT) com> wrote

Quote:
Hi Bob
To work from D3 spooler there is an excellent product called Dosprn. The
setup is well described on the D3 support site. Peter McMurray
"BobJ" <bobj (AT) wildblue (DOT) net> wrote in message
news:cknDf.2$fg.121976 (AT) news (DOT) sisna.com...
FWIW Windows XP Prof now supports printing to a windows printer - the
cheapies - with a script or from the command line. Not sure when this
happened but it is a feature that I am finding very useful. Of course I
may be the only one who didn't know this.

print /d:\\ServerName\ShareName C:\folder\some.txt

Note that / means option and d means device not drive. Why the : after D?
I have no idea, but it works for me. This seems to work on any networked
printer that is running on a late version of XP Prof but I have not tried
it on XP Home.
There is a rain dance required with UV or jBase to make the mapped drives
and printers work but most seem to know how to do that.
BobJ






Reply With Quote
  #9  
Old   
Nikolai Lukin
 
Posts: n/a

Default Re: Windows Printer - 01-31-2006 , 07:33 AM



"BobJ" <bobj (AT) wildblue (DOT) net> сообщил/сообщила в новостях следующее:
news:ApnDf.3$3f.64576 (AT) news (DOT) sisna.com...
Quote:
False alarm. The printer said in a loud, clear voice ''printing started''
and then ''printing complete'' but it lied. Has anyone been able to solve
this in a reasonable fashion?
Bob,

PrintWizard of Rasmussen Software www.anzio.com would do the job for you and
much more, including printout formatting. It uses an extention to HTML for
formatting, understands PCL, and will contert to PDF as well. It turns your
Windows PC into an LPD server, etc. etc.

It costs some money though. Free download with 60-day trial is available
from their site. Great product.

HTH
Nick




Reply With Quote
  #10  
Old   
BobJ
 
Posts: n/a

Default Re: Windows Printer - 01-31-2006 , 08:33 AM



Thanks, Nick, a quick look was impressive. I'm going to give it a try but I
am a little bothered by the pricing model. There are a dozen or more
printers in the system.
BobJ
"Nikolai Lukin" <nvlukin (AT) gmail (DOT) com> wrote

Quote:
"BobJ" <bobj (AT) wildblue (DOT) net> сообщил/сообщила в новостях следующее:
news:ApnDf.3$3f.64576 (AT) news (DOT) sisna.com...
False alarm. The printer said in a loud, clear voice ''printing
started'' and then ''printing complete'' but it lied. Has anyone been
able to solve this in a reasonable fashion?

Bob,

PrintWizard of Rasmussen Software www.anzio.com would do the job for you
and much more, including printout formatting. It uses an extention to HTML
for formatting, understands PCL, and will contert to PDF as well. It turns
your Windows PC into an LPD server, etc. etc.

It costs some money though. Free download with 60-day trial is available
from their site. Great product.

HTH
Nick




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.