Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable not found
Message
 
 
To
20/02/2001 14:57:03
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00476708
Message ID:
00477767
Views:
39
>the report runs off the main application, but it shouldn't matter because it is in its own executable. The user chooses a report to run from the listbox and then a new executable is called that gathers the data and runs the report. Since it is a new exe, I think it should run in a new datasession, but I am not for certain.

If this new exe doesn't use forms with Private DS or create Session object, I guess, it runs in Main application DS. So, perhaps, it's a source of the problems. Theoretically, it should not matter, if it runs in Private or Default DS, if the right alias is selected just before Report Form command. However, as life teaches us, it's not always true. In a case of Grid in main application and report form command in child application, it doesn't work correctly, if they are run in the same DS (I think, it doesn't matter, do you compile .exe or .app). If they are run in separate DS, there is no error.

So, the suggested cure could be create a session object in the second executable (if you're using VFP6.0 SP3 or 4). At least, it should solve the problem.

Also if you can create an easy to reproduce test, it would help.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform