set printer problem.
Index
‹
Visual FoxPro
‹
Visual FoxPro General
Author
Message
Aleniko29139
Posted: 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 FoxPro2
Alex Feldstein
Posted: Visual FoxPro General, set printer problem.
Top
You have to use macros or named variables:
cPrinter = getprinter()
set printer to name (cPrinter)
HTH
Index
‹
Visual FoxPro
‹
Visual FoxPro General