Seems to me that FOR WHILE and RANGE could be confusing. FOR WHILE is selecting a range of records and RANGE is selecting a range of pages. The set of FOR WHILE records may not be the same as the set of RANGE records. Use one or the other, but not both.
>Hi All,
> FYI, I have created my own GUI instead of PROMPT clause while printing the report. Now I have problem in printing the specific page of report. I am calling the report using RANGE option. Here is the command.
>
>REPORT FORM (.RptTmpFile) TO PRINTER ;
> &lcForWhile ;
> &lcScope ;
> NOCONSOLE ;
> RANGE lnPrintRangeFrom, lnPrintRangeTo
>
>Looks like it does not print the specific page, only when there is FOR/WHILE condition. Instead of printing specified page, it prints all.
>
>Any idea, why it does not print? I appreciate all your suggestions and help.
>
>Thanks in Advance,
>
>Ravi
Dennis Lindeman