Use SET PRINTER TO DEFAULT to select the Windows default printer. Use SET PRINTER TO NAME SYS(1037) to let your user select another printer as the VFP default printer. ?SET("PRINTER", 3) will tell you the VFP default printer name. ?SET("PRINTER", 2) will tell you the Windows default printer name.
>I'm trying to give the users the ability to modify reports within my application. I put up a custom menu before I do the modi repo on the report. On the custom menu I added a Page Setup bar that calls _mfi_pgset. This allows the user to change the number of columns, etc. It also allows selecting and storing the printer via a Print Setup button. The problem is that the Print Setup button does not allow you to select the default printer. This seems to hold true for sys(1037) also. In Fpw 2.6 the Print Setup button gave you the options of selecting the default printer or a specific printer.
>
>How do you allow selecting and storing the default printer for reports?
>
>Tim
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.