>Hi,
>
>I am using SYS( 1037 ) to allow a user to select a printer and the page layout etc prior to printing a report. This is fine, but I can't see a way to determine if the user clicked CANCEL on the dialog. Using GETPRINTER() returns empty string or the name of the users chosen printer so if they click CANCEL I can determine this. SYS( 1037 ) always returns an empty string, as documented in the Hackers guide and MSDN.
>
>Any thoughts on how to determine if the user clicks cancel on a SYS( 1037 ) dialog?
>
>Thanks.
>
>Lloyd Grant.
There's no way, since the function always returns an empty string. The Common Dialog ActiveX control, however, can be used to do this.
George
Ubi caritas et amor, deus ibi est