Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Listener Data Session Problem
Message
From
22/10/2008 00:42:28
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01355732
Message ID:
01356202
Views:
24
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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform