>hi,
>thanx for the reply,
>and thats exactly what i ma doing now.
>
>well my question remains ?
>
>can it be possible to run a report withour selecting the work area in my case ?
>
>something like
>
>report form report1 noconsole preview from cursor1
>or some thing like that where the alias is passed as a parameter and the report runs without moving away from the current work area ?
Forgot to mention - no and no is the answer to these. The first won't work because the report
always works on the currently selected alias, and the second doesn't exist in the syntax.
You can write some wrapper code, where you'd have the report and the alias name passed as parameters. That code would select the alias, run the report, and restore the alias to what it was before. So you'd write
this.DoReport("report1","cursor4")
That would make your code simpler to read and maintain.