Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Listener Data Session Problem
Message
De
23/10/2008 00:11:09
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355732
Message ID:
01356468
Vues:
23
?

I'm a little bit puzzled now.

You may try to run the coverage (SET COVERAGE TO File) before you start the report, its a lot of work, but you might find the last actions taken.

Agnes
>No change. I still get prompted for the report's data.
>
>
>
>>Check the classes up to FXListener too
>>
>>>Ok, maybe I just don't understand the issue here. The moment I step into Listener.RunReports, before any listener code runs, the data session changes, so the report's data is no longer available.
>>>
>>>I went through the _ReportListener class and looked for instances of SET DATASESSION. I found only one, in AddReport, that was not being reset. so I added code to save & restore the data session. This had no effect. I still get prompted for the table.
>>>
>>>
>>>
>>>
>>>
>>>>Kevin,
>>>>
>>>>the Reportlistener sets and resets datasessisn during its life. Sometime it does not reset correctly. You need to open the listeners in the vcx (this in XSource) search for SET DATASESSION and make shure the datasession is closed corectly before a method ends.
>>>>
>>>>Recompile the listener app - and do not miss to ship it with your app.
>>>>
>>>>I've done a thread over this a while ago, but I'm not a subscriber, so it's hard to search. Just search my messages back xoursel, it must be somewhere.
>>>>
>>>>Agnes
>>>>>I am running a report, and before I do, I open the data for the report. The report's data is open in session #4.
>>>>>When the report listener runs, it changes data sessions, so I'm now getting prompted for the table.
>>>>>
>>>>>Anyone know what to do about this?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform