If you know the network name of the printer, you can use SET PRINTER TO NAME (VariableWithPrinterName). You may want to create a configuration screen where the user selects the printer to use (you can use APRINTERS to get a list of available printers). Then SET PRINTER TO the printer they select whenever your program starts. If you want to play nice and set the printer back to what it was, just store SET("PRINTER",2) before you change it.
>Hi:
>I would like to know how can i change the default of my printer using a vfp code. i have to printer on my network and every time that the user print on a diferent printer in the vfp aplication must to select the printer manually.
>I want to do it inside my program.
>
>
>
>Thank,
>Vanzetty Durant,
>Dominican Republic