Set printer to NAME  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, Set printer to NAME Top

Hi;

I am using "Set printer to NAME getprinter()" to select a printer.
I also have tried "Set printer to name \\somePC\someprinter"

In both cases an error is produced. "Error accessing print spooler"

The network is a win2003 server with both XP pro and Win98 stations.
The printer is on a win98 station.


I was wondering if I should use "set printer to \\somePc\somePrinter" without the NAME clause

Thanks.


Visual FoxPro2  
 
 
giuln





PostPosted: Visual FoxPro General, Set printer to NAME Top

what vfp version are you using

I tried in Win98/Vfp6 Set Printer To Name GetPrinter() and it works fine...

Have you any printer installed on Win98



 
 
Aleniko





PostPosted: Visual FoxPro General, Set printer to NAME Top

Here's what I have found:

"Name" requires that the network printer will be added as a printer on the local machine.

set printer to \\machine\printer however doesn't require one to be installed.

Nowhere in the VFP code there is mention that you can even use set printer to \\machine\printer with no name clause.

But I've used it without NAME clause and it works fine.

Thanks,

Aleniko

 
 
Avance





PostPosted: Visual FoxPro General, Set printer to NAME Top

Works for me using Window ME, with the same problem of Aleniko.

Thanks.