>I wish it was just that simple! I would like the same function but in VFP6. However, if I try to add the word prompt to "report form myreport preview" I get a syntax error.
>
>My work around on this was to create a basic form, that in my case allows the user to set certain criteria for the report with an OK and Exit button. The user specifies report contents criteria, cliks OK, and the report is previewed to the screen. The user previews the report then closes the report and I have a message "Do you want to print the Report that you just previewed" Yes/No, If the user selects yes, the command "Report form &myreport &myselection to printer prompt noconsole" is issued and the prompt screen appears allowing the user to specify print conditions.
>
>This is only a work around. I would much prefer the Print Icon on the Print Preview toolbar to bring up the Printer Prompt.
OK, I just checked the syntax for VFP5/VFP6. It's:
REPORT FORM myreport TO PRINTER PROMPT PREVIEW
Our command was built up with macros and was a little hard to decipher, sorry about that.