Information générale
Catégorie:
Gestionnaire de rapports & Rapports
I forgot to read the fine print! "sys(2040) returns "2"" not 2 (ouch!)
Thanks
Glenn
ps See you Saturday
>You must be missing something! < g >
>
>While the report is printing .. SYS(2040) returns "2". Once the report is done, SYS(2040) returns "0". Are you trying to call SYS(2040) from within the report or after the report has run?
>
>Cathy
>
>
>>It appears that the sys(2040) function will not return 2 when the report is printed to the printer from the preview. Am I missing something?
>>
>>Glenn
>>
>>>There's a new SYS() function to get around the WEXIST/NODIALOG issue. SYS(2040) returns a value of "1" if the user is previewing and "2" if the user is printing. Note that it returns a character value .. not a numeric value.
>>>
>>>Cathy
>>>
>>>
>>>>Very clever! But what if you use the new "NODIALOG" feature of VFP8.0, does the WEXIST() technique still work??? I will check it out.
>>>>
>>>>Thanks
>>>>Glenn
>>>>
>>>>>You may use something like this:
>>>>>Add a variable to the report, like 'isprinted', with initial value .f. and value to store wexist("PRINTING").
>>>>>
>>>>>Then check isprinted value after user closed or printed the report.
>>>>>
>>>>>>Is there any way to detect if the user cancelled printing during a preview? In other words can we detect if the door icon on the toolbar was used? I believe in previous versions (FPW) this was possible, but now that my mind is gone I cannot remember the "trick"
>>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>Glenn
Précédent
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