>Can anyone tell me how to change windows printers VIA VFP?
>
>I want to print a report to the default network printer then change to a local label printer and then change back.
>
>Thanks..
Hi Jerry
Jim Booth send me this code yesterday, I think it can help you to.
LOCAL lcOldPrinter, lcNewPrinter
lcOldPrinter = SET("PRINTER",2) && Save the current printer name
lcNewPrinter = GetPrinter() && Get the printer the user wants
SET PRINTER TO NAME (lcNewPrinter) && Set the printer to the one selected
REPORT FORM Whatever TO PRINT NOCONSOLE && Print the report
SET PRINTER TO NAME (lcOldPrinter) && Restore the original printer
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"