Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxypreviewer datasession doesn't release
Message
 
 
À
22/04/2011 14:33:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01508144
Message ID:
01508145
Vues:
124
>I am running a report
>
>cAlias = "tmp"
>cRptName = "forecast"
>
>LOCAL loReport AS "PreviewHelper" OF "FoxyPreviewer.App"
>loReport = CREATEOBJECT("PreviewHelper")
>loReport.AddReport(cRptName, "to printer prompt preview noconsole", cAlias)
>loReport.RunReport()
>
>
>this report is run in a form whose
>DataSession = 2
>ShowWindow= 1
>
>Everything is fine except that when i close the form the files were opened in forms private datasession are still there with the name Unknown(2).
>Why the files are not closed in this data session even the datasession is set to private in form?

Have you isolated the problem to be previewer? In other words, if you comment out this code, you don't have the same problem? Also, just in case, have you tried adding loReport = null
release loReport

after you finished?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform