Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Hello FoxPro developers,
have a problem with WEXIST('Printed...'). I was trying to determine if the report was printed or just previewed. I did found a couple of articles about this problem and I thought I am all set. But I was wrong and I can't figure out what is wrong, everithing looks pretty striaght forward.
I declared a report logical variable WasReportPrinted and in the Summary OnExit I've entered this expresion:
IIF(WEXIST('Printed...'), WasReportPrinted = .T.,WasReportPrinted = .F.. On the Init event of the report I've set it to .F. The reset for this variable on the end of report. In the Variable settings dialog box initial value for this variable and value to change is a variable iteself and release after report is 'no'. The problem is that the value of this variable is never changing! I mean ever, even after report was printed it still .F. I check the value of the WEXIST('Printed...')in the Init, BeforeCloseTables, AfterCloseTables and Destroy Events and it is always .F.. I am doing something wrong but can't figure out what.
Another thing that WEXIST() is the function that return .T. or .F. if the UDF Window exists. But 'Printed...' is NOT UDF window, right?
Can anybody help? I am using VFP 7.0 and MM Framework but I think MM got nothing to do with VFP Report Generator.
Thank you very much.
Igor
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