set printer problem.  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, set printer problem. Top

Hi;

What's wrong with this:

cPrinter = getprinter()
set printer to name cPrinter


It always errors "Error accessing printer spooler"

On the other hand,

set printer to name getprinter()

works fine.

Thx.



Visual FoxPro1  
 
 
Alex Feldstein





PostPosted: Visual FoxPro General, set printer problem. Top

You have to use macros or named variables:

cPrinter = getprinter()
set printer to name (cPrinter)

HTH