>>>Hello to everybody, I've been out for a long time, but I'm
>>>back.
>>>Somebody knows a way to check if user clicked on the
>>>print button while previewing a report ?
>>>I use to do this in the old days :
>>>
>>>REPORT FORM MyReport PREVIEW NOCONSOLE
>>>REPORT FORM MyReport TO PRINTER PROMPT NOCONSOLE
>>>
>>>But now I in 5.0 the user can print from the preview, and
>>>when that happens I don't want the second line of code
>>>to be executed
>>>=this.thanks("in advance")
>>
>>Probably, now you can just remove the second line :). If your users will request to get into print setup dialog, you can add a button with =SYS(1037) on your form.
>
>Thanks Edward, your idea is good, but they want to have both,
>lets say that after previewing they click on cancel by mistake,
>they still want to be able to print without running the
>report again.
If you keep report cursor, they can print report again without rerunning report query.
Edward Pikman
Independent Consultant