First I have a form parameter called cprinter
Then I have a button on the form for changing the printer as follows...
I set a variable to the printer name
cp = getprinter()
Then check for the return...
IF !EMPTY(cp)
thisform.cprinter = cp
Else && set to the default printer
thisform.cprinter = SET("Printer",2)
ENDIF
SET PRINTER TO NAME (thisform.cprinter)
thisform.label2.Caption = thisform.cprinter
HTH
Ron Seidl
Independent Developer
VFP
"I'm playing in life's theater in anticipation of a great cast party!"