>I mean paper size, orientation, etc. In other words, how to display in code the page setup dialog? Thank you!
The simplest way - and the method I use - is to combine it with the REPORT command, using the PROMPT clause:
report form MyReport to printer prompt
The user can select a different printer, print only a few pages, or even cancel.
HTH,
Hilmar.
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)