r@ds

We have a number of Dos Foxpro , Visual Foxpro and vb.net applications

that print data using the dos print command.

This works fine if the dot matrix printer is connected to an xp pc and then

shared on network. From a vista pc I can send a print on the shared printer.

But if the printer is physically connected to a vista pc , then this print command

doesnt work.

What settings can I change to get this going

Its not possible to alter the print command as its used in over 45 applications.

print //MachineName/SharedPrinterName

Any help would be great !



Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

Bruce N. Baker - MSFT

Try running the command prompt "as administrator".




Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

rm

Tried Try running the command prompt "as administrator" but doesnt help.

The prompt says ' printing file ' but nothing is happening on the printer.

Also , when i add the printer should i add it as Local printer ->

New Port -> //Machinename/PrinterName

( This leads to access denied )

Or do i add it as a network printer

Currently , i have added it as network printer and it shows up as lpt1.

Please suggest a solution, as its creating a problem in numerous applications.





Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

Bruce N. Baker - MSFT

How are you running the print command

Does you printer operate normally directly on Vista with notepad






Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

r@ds

The foxpro applications use RUN PRINT command from foxpro code.

The other applications use batchfiles with PRINT command

While testing , i simply open cmd from start menu

Yes the txt file prints from Notepad . but not from cmd prompt.

Really need a fix for this , its creating chaos !





Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

Mo Nail - MFST

Have you verified that the printer correctly operates with any other program on Vista If it does not, then it sounds like a printer driver problem. If that is the case, you will need to contact the printer manufacturer.




Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

r@ds

Its not a printer driver problem , Epson LQ 500 has a Vista compatible driver.

I can print from other applications also.

But from cmd prompt its not working .





Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

Mo Nail - MFST

An internal source provided some feedback which will hopefully help:

Assuming a non-USB printer (which should be autodetected and Just Work ), he should configure Windows to use the port he¡¯s plugged the printer into. For example:

1. Open Control Panel/Printers

2. Add Printer¡­

3. Add a local printer¡­

4. Choose ¡°Use an existing port:¡±

5. Choose the appropriate port (likely LPT1: ), Next

6. Choose the appropriate printer, Next

7. Choose a name (default is fine), Next

8. Finish

I don¡¯t have a local printer, so I can¡¯t test this for sure, but that should get PRINT to work. He might also try these for troubleshooting¡¯s sake:

Explicitly specify the port (assumes LPT1 ¨C change as appropriate):

print /d:lpt1 filename

Copy text to the ¡°printer¡± device:

copy filename prn

Copy text to the port:

copy filename lpt1

One of those ought to work. J






Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

r@ds

print /d:lpt1 filename

This works but only on the pc to which the printer is physically connected.

From other pc's on network , the prompt displays - " file is currently printing " .

but doesnt actually print !

From the PC on which the printer is attached , do I need to add permissions for network pc

My guess is its a permission problem...DOS prompt print doesnt have access to the printer on network !

PC 1 -> local printer connected to it which is shared as EPDLQ .

PC 2 is on network , please give me the exact steps to ADD printer EPDLQ to PC 2 printer ,

so that I can print from PC 2 dos prompt to EPDLQ.

Would really appreciate help with this !

Thanks ..





Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

Mo Nail - MFST

Sorry, but I have been unable to find an answer to this last question. If you are a Microsoft partner, you might try contacting your regional support.




Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

getzd

Hello r@ds

Here is one more thing that you can check. You need to set up DOS print capture on the remote PCs to redirect the DOS output to LPTn [where n=1-3] to the network printer on the Vista machine. I have tried this on my Vista Business

system with a shared laser printer in a Windows 2003 Domain. On the network client PC use the following command:

net use LPT1: \\VISTA1\Printer1 /persistent:yes

The persistent:yes makes the redirection survive reboots.

I have a customer with 4 Vista Business systems setup in a workgroup configuration and they can print to shared printers connected to Vista systems from Windows Apps but when they try to print from DOS Apps or the Vista Command Prompt, they get an Access Denied error. I will let you know if I find a solution there, short of putting in a Windows Server.

cheers,

dg






Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

servenaya

hey DG,

Ive been having the same problem when it comes to print a Printer shred between two Windows Vista machines uisng a DOS apps. When i trying printing from remote computer it tells me that access is denied.. have you been able to find a fix for this Could it be something to do with the printer permissions and the share permissions Let me know


JP




Re: Application Compatibility for Windows Vista dos print command doesnt work when printer connected to Vista

getzd

Sorry, I never did find a solution. The customer got tired of waiting for a fix and "upgraded" to WinXP on the system

with the attached printers and that apparently solved the problem. But I didn't see it work first hand.

good luck,

dg