Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF Power to the People
Message
From
09/05/2006 14:53:09
 
 
To
09/05/2006 14:23:35
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01120477
Message ID:
01120493
Views:
26
I have discovered what may be a workaround (or it may be the way I'm supposed to do it):

set the CurrentDatasession of the PDF Listener object to the datasession you want before calling the runreports method.

>Hi,
>
>I've used the code from http://msdn.microsoft.com/library/en-us/dnfoxtk05/html/ft05f1.asp?frame=true previously with only a slight problem - I had to save the datasession prior to calling the runreports method and restore it afterwards.
>
>However I am now trying to use it and am getting problems which is apparently due to the same datasession switching. In this instance the reports use the data in the calling form's datasession, but the pdflistener switches the datasession to the default datasession, hence my data can't be found.
>
>Has anyone come across this and solved it?
>
>Frank
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform