>We are doing a Fox 2.0 DOS to VFP9 conversion. There are more reports than you can shake a stick at. They are written using ?? and ? to send raw data to the printer. I have been able to get this to work with the default printer but need to be able to get the current default printer, set the default to a printer for wide column reports and then set it back to the original default.
? SET("PRINTER",2)
? SET("PRINTER",3)
...
DECLARE Integer SetDefaultPrinter IN WINSPOOL.DRV String
...
IF SetDefaultPrinter(lcPrinter) = 0
RETURN .F.
ENDIF
...
--sb--