I'm using the sys(1037) function instead of the PROMPT command for reports, but when I select the cancel button of the print dialog that appears, the print operation executes anyway. Is there a bug with this function, or am I using it wrong? Here is a simple example of what I am doing:
g_frxmain = 'contract.frx'
IF ALLTRIM(G_USERID) = "JSH"
SELECT &lctmpstem &&records to send to report
SYS(1037)
REPORT FORM (g_frxmain) ;
TO PRINTER NOCONSOLE &&took out printer prompt
ELSE
SELECT &lctmpstem
GO TOP
REPORT FORM (g_frxmain) ;
TO PRINTER NOCONSOLE
ENDIF
Thanks for any help.
John.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement