PC Review


Reply
Thread Tools Rate Thread

Can't print from Dos program within Vista?

 
 
Wizard
Guest
Posts: n/a
 
      29th May 2007
I have an RBase application I've been using for years and I have it now
running in Vista Business but I can not get it to print no matter what I
do. I have an HP960c Inkjet printer connect by USB. I have no LPT ports.
I have tried "net use LPT1 \\wizard\HP960c /persistent:yes" where wizard
is the machine name and HP960c is the printer name. I have even shared
the printer but nothing works. This BTW works fine in XP (I have to dual
Boot because of this issue).
I can print with this setup from a command line using the copy command.

Any Help?
 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a
 
      29th May 2007
I don't have an answer, but here's some reading material....


http://techrepublic.com.com/5208-623...sageID=2233343

http://www.mydigitallife.info/2005/1...in-windows-xp/

http://www.windowsitpro.com/Article/...674/39674.html

http://discussions.virtualdr.com/sho...oto=nextnewest

http://geekswithblogs.net/dtotzke/articles/26204.aspx

I changed my USB printer share to a shorter name, with no spaces, and was
able to map it to LPT1
net use LPT1: \\computer\hp6110

then I was able to print by
type dir.txt > lpt1

(had to send the command 3 times, because the file wasn't a page long in
length)



"Wizard" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an RBase application I've been using for years and I have it now
> running in Vista Business but I can not get it to print no matter what I
> do. I have an HP960c Inkjet printer connect by USB. I have no LPT ports.
> I have tried "net use LPT1 \\wizard\HP960c /persistent:yes" where wizard
> is the machine name and HP960c is the printer name. I have even shared
> the printer but nothing works. This BTW works fine in XP (I have to dual
> Boot because of this issue).
> I can print with this setup from a command line using the copy command.
>
> Any Help?


 
Reply With Quote
 
=?Utf-8?B?dGVwZWNv?=
Guest
Posts: n/a
 
      29th May 2007
Perhaps the problem is that the old DOS program does not know what a USB
hookup is. I think you have to use a printer that uses the old parallel port.
I know my old DOS program (Q&A) works this way.

"Wizard" wrote:

> I have an RBase application I've been using for years and I have it now
> running in Vista Business but I can not get it to print no matter what I
> do. I have an HP960c Inkjet printer connect by USB. I have no LPT ports.
> I have tried "net use LPT1 \\wizard\HP960c /persistent:yes" where wizard
> is the machine name and HP960c is the printer name. I have even shared
> the printer but nothing works. This BTW works fine in XP (I have to dual
> Boot because of this issue).
> I can print with this setup from a command line using the copy command.
>
> Any Help?
>

 
Reply With Quote
 
Seth
Guest
Posts: n/a
 
      30th May 2007
"Wizard" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an RBase application I've been using for years and I have it now
> running in Vista Business but I can not get it to print no matter what I
> do. I have an HP960c Inkjet printer connect by USB. I have no LPT ports.
> I have tried "net use LPT1 \\wizard\HP960c /persistent:yes" where wizard
> is the machine name and HP960c is the printer name. I have even shared
> the printer but nothing works. This BTW works fine in XP (I have to dual
> Boot because of this issue).
> I can print with this setup from a command line using the copy command.



You don't say if there is actually a network connected to your PC. Without
an active network connection, you can not map a network resource, even to
yourself.

IN a case like this, you need to install the Microsoft Loopback Adapter.
This acts like a virtual network device that is always connected allowing
you to map a network resource (like in this example, to yourself).

I have done this in XP often, but have not tried it in Vista, but I did
verify that the virtual loopback adapter does exist in Vista, so try the
instructions found here...

http://geekswithblogs.net/dtotzke/articles/26204.aspx

You may have to fudge a little as not everything is in the same place. The
trouble I have when passing on some of this information is certain steps I
do from memory without consulting the instructions step-by-step, so if you
have trouble doing it this way, come back with the specific issue.

The above is assuming that your issue is because there is no network
present.

 
Reply With Quote
 
Wizard
Guest
Posts: n/a
 
      30th May 2007
I have tried the "Loopback Adapter" which had no effect. BTW that was
not necessary in XP.
I actually kinda think the problem is that there is no Parallel port on
this MoBo and therefore no LPT's loaded.
There seems to be alot of discussion about this very issue elsewhere on
the web but so far no one has an answer.

Seth wrote:
>
> "Wizard" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I have an RBase application I've been using for years and I have it now
> > running in Vista Business but I can not get it to print no matter what I
> > do. I have an HP960c Inkjet printer connect by USB. I have no LPT ports.
> > I have tried "net use LPT1 \\wizard\HP960c /persistent:yes" where wizard
> > is the machine name and HP960c is the printer name. I have even shared
> > the printer but nothing works. This BTW works fine in XP (I have to dual
> > Boot because of this issue).
> > I can print with this setup from a command line using the copy command.

>
> You don't say if there is actually a network connected to your PC. Without
> an active network connection, you can not map a network resource, even to
> yourself.
>
> IN a case like this, you need to install the Microsoft Loopback Adapter.
> This acts like a virtual network device that is always connected allowing
> you to map a network resource (like in this example, to yourself).
>
> I have done this in XP often, but have not tried it in Vista, but I did
> verify that the virtual loopback adapter does exist in Vista, so try the
> instructions found here...
>
> http://geekswithblogs.net/dtotzke/articles/26204.aspx
>
> You may have to fudge a little as not everything is in the same place. The
> trouble I have when passing on some of this information is certain steps I
> do from memory without consulting the instructions step-by-step, so if you
> have trouble doing it this way, come back with the specific issue.
>
> The above is assuming that your issue is because there is no network
> present.

 
Reply With Quote
 
Peter B. Steiger
Guest
Posts: n/a
 
      22nd Jun 2007
On Wed, 30 May 2007 12:15:44 -0400, Wizard sez:
> I actually kinda think the problem is that there is no Parallel port on
> this MoBo and therefore no LPT's loaded.


Nope, XP works fine on the same PCs that do not have an onboard parallel
port. Only Vista breaks LPT emulation.

Hey, did you ever get a useful answer to this question? I'm the "legacy
maintainer" (read: software janitor) for a bunch of Clipper apps and our
customers are reporting the same problem. Odd thing is, COPY/B
{filename} LPT1 works file; we just can't get it to print directly from
the application to the printer. I don't know about R:Base, but I think
Clipper invokes a DOS interrupt to check for printer existence and that
DOS interrupt is failing.

Man, I haven't played with R:Base for over 15 years. I fell in love with
it when our database prof showed it off as a lark in 1983, but he didn't
seriously think anyone would do large-scale database operations in
anything but COBOL so he blew it off at the time. Nobody else every came
close to the R:Base natural language query parser!

Email me if you want to do some brainstorming off-list... I can go into
more detail about what we have already tried that doesn't work.

--
Peter B. Steiger
Cheyenne, WY
If you must reply by email, you can reach me by placing zeroes
where you see stars: wypbs_**2 at steigerfamily.com.

--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
=?Utf-8?B?UGF1bEI=?=
Guest
Posts: n/a
 
      25th Jun 2007
Make sure to open the CMD prompt with runs as administrator. I use Rbase and
this works for me. I also set output to a file name and the just print the
file.
--
Paul


"Peter B. Steiger" wrote:

> On Wed, 30 May 2007 12:15:44 -0400, Wizard sez:
> > I actually kinda think the problem is that there is no Parallel port on
> > this MoBo and therefore no LPT's loaded.

>
> Nope, XP works fine on the same PCs that do not have an onboard parallel
> port. Only Vista breaks LPT emulation.
>
> Hey, did you ever get a useful answer to this question? I'm the "legacy
> maintainer" (read: software janitor) for a bunch of Clipper apps and our
> customers are reporting the same problem. Odd thing is, COPY/B
> {filename} LPT1 works file; we just can't get it to print directly from
> the application to the printer. I don't know about R:Base, but I think
> Clipper invokes a DOS interrupt to check for printer existence and that
> DOS interrupt is failing.
>
> Man, I haven't played with R:Base for over 15 years. I fell in love with
> it when our database prof showed it off as a lark in 1983, but he didn't
> seriously think anyone would do large-scale database operations in
> anything but COBOL so he blew it off at the time. Nobody else every came
> close to the R:Base natural language query parser!
>
> Email me if you want to do some brainstorming off-list... I can go into
> more detail about what we have already tried that doesn't work.
>
> --
> Peter B. Steiger
> Cheyenne, WY
> If you must reply by email, you can reach me by placing zeroes
> where you see stars: wypbs_**2 at steigerfamily.com.
>
> --
> Posted via a free Usenet account from http://www.teranews.com
>
>

 
Reply With Quote
 
=?Utf-8?B?UGF1bEI=?=
Guest
Posts: n/a
 
      25th Jun 2007
What I meant in my last post was to elevate the command prompt ( Run as
administrator) when you use the Net use command.
--
Paul


"PaulB" wrote:

> Make sure to open the CMD prompt with runs as administrator. I use Rbase and
> this works for me. I also set output to a file name and the just print the
> file.
> --
> Paul
>
>
> "Peter B. Steiger" wrote:
>
> > On Wed, 30 May 2007 12:15:44 -0400, Wizard sez:
> > > I actually kinda think the problem is that there is no Parallel port on
> > > this MoBo and therefore no LPT's loaded.

> >
> > Nope, XP works fine on the same PCs that do not have an onboard parallel
> > port. Only Vista breaks LPT emulation.
> >
> > Hey, did you ever get a useful answer to this question? I'm the "legacy
> > maintainer" (read: software janitor) for a bunch of Clipper apps and our
> > customers are reporting the same problem. Odd thing is, COPY/B
> > {filename} LPT1 works file; we just can't get it to print directly from
> > the application to the printer. I don't know about R:Base, but I think
> > Clipper invokes a DOS interrupt to check for printer existence and that
> > DOS interrupt is failing.
> >
> > Man, I haven't played with R:Base for over 15 years. I fell in love with
> > it when our database prof showed it off as a lark in 1983, but he didn't
> > seriously think anyone would do large-scale database operations in
> > anything but COBOL so he blew it off at the time. Nobody else every came
> > close to the R:Base natural language query parser!
> >
> > Email me if you want to do some brainstorming off-list... I can go into
> > more detail about what we have already tried that doesn't work.
> >
> > --
> > Peter B. Steiger
> > Cheyenne, WY
> > If you must reply by email, you can reach me by placing zeroes
> > where you see stars: wypbs_**2 at steigerfamily.com.
> >
> > --
> > Posted via a free Usenet account from http://www.teranews.com
> >
> >

 
Reply With Quote
 
Dave R.
Guest
Posts: n/a
 
      1st Feb 2008

"russwint" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I am having the every same problem that Wizard had who started this
> thread.
>
> The thread seems to have stopped in June 2007 without finding a
> solution.
>
> I also have a computer (Notebook) without a Parrallel Port runing
> Vista.
>
> The printer is a USB Printer which I have shared.
>
> I can use the NET USE LPT1 \\server_name\printer_share_name command to
> map the LPT Port to a Shared Printer
>
> I can send data to the printer using either of the following
> commands...
> COPY TEXTFILE.TXT LPT1
> TYPE TEXTFILE.TXT > LPT1
>
> However if I try to print to the printer from my application it fails.
>
> I expect that the application is checking the status of the Port and
> this is failing.
>
> The application runs fine under Windows XP.
>


From some other threads I've seen, even though you don't have a physical
parallel port on your laptop, Vista may still think you have one.
Here's something to try (I found it by searching Google with "net use
lpt group:microsoft.public.windows.vista.*".

>>Check device manager and look under Ports. You probably have an LPT1
>>listed. If you really need to use LPT1 in your redirection, you can
>>doubleclick on this port and change the LPT Port number (Port Settings
>>tab)
>>to 2 or 3.


>Or if you only use Network printers. DISABLE the port in the BIOS and
>then remove from the device manager.


There are a number of other threads, and several talk about problems
redirecting to an LPT port if one exists, either physically or in
Vista's addled mind.

Hope this helps.

Dave


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't print from Dos program within Vista? Wizard Windows Vista Installation 10 18th Jun 2009 10:18 PM
Vista Can't Print to Win2K shared printer-Test Print disappears fr Jeremy Windows Vista Networking 1 29th Jun 2008 08:31 PM
Unable to Print or Print Preview from IE7 on Vista Home Premium Poppy Windows Vista Print / Fax / Scan 5 13th May 2008 07:56 AM
After a program is closed, Vista informs that the program has stoppedworking. Huh? Raymond Windows Vista General Discussion 5 20th Jan 2008 08:22 PM
Can't print from Dos program within Vista? Wizard Windows Vista General Discussion 7 25th Jun 2007 04:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 AM.