>I want to run a report that has a printer set up in the page set up dialog
>
>However, I want to run the report on a different printer and the report should ignore the setting in the page set up dialog.
>
>I want to set the printer to what the user chooses and then I would print a few different reports all to the same printer that the user chose before, ignoring the printer that is set in the page set up. Sorry for being repititios, I wanted to be clear.
VFP reports give problems if they are designed for one printer, and printed on another one. You should clear the corresponding fields in the report; the easiest way to do this is to get the XDIR download, from the downloads section.
To select a printer, use the getprinter() function. The steps are more or less like this (quoted from my unreliable memory!):
local lcPrinter
lcPrinter = GetPrinter()
if not empty(lcPrinter)
set printer to &lcPrinter
report form ...
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)