What I usually do is show the users a dialog. The page range the user selects in this dialog works correctly.
REPORT FORM MyReport TO PRINTER <B>PROMPT</B>
HTH, Hilmar.
>Hi everyone,
>
>I'm trying to Print a range of pages and not the whole report. I used RANGE option in REPORT FORM command;
>
>REPORT FORM
RANGE RNG1,RNG2 TO PRINTER
>
>I also used _PBPAGE and _PEPAGE variable;
>
>PRINTJOB
>_PBPAGE=RNG1
>_PEPAGE=RNG2
>REPORT FORM TO PRINTER
>ENDPRINTJOB
>
>In both the options it keeps on printing all the pages. Can anyone help me solve this problem.
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)