Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mix .EXE and .APP - problem with showing report
Message
De
14/09/2014 15:10:45
 
 
À
14/09/2014 08:12:06
Darjo Remec
Naturalis d.o.o.
Trzin, Slovanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01607502
Message ID:
01607509
Vues:
84
>Hello!
>
>I have a problem with showing reports in Visual FoxPro.
>
>My application consists of an .exe file which contains most of the code and an .app file that I run on start to add some more functionality accessible via a menu.
>Each of these two files have reports included in them.
>
>When I tried to show a report from the code in APP I got a File not found error. As a workaround I've excluded the report files from the APP project and placed it somewhere on the disk. So when I create a report I use it's physical location on the disk. And this works.
>
>What also works is if I show a report first from the EXE code and then from the APP code.
>What doesn't work is if I show a report first form the APP code (it shows as expected) and then from the EXE code later (I get a File not found error).
>
>The solution would be to exclude ALL the reports from both projects and put them on the disk but that would be extremely impractical.
>
>Does anyone have any ideas what could be causing this?

As I understand it VFP will look for files in EXEs or APPs in the current call stack. If you're running a report from your APP and it's in the APP, it should be found. You might need to closely examine the actual call stack when you're doing that.

Some settings that may come into play are SYS( 2450 ), SET PROCEDURE and SET PATH. You might check whatever settings are already in use.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform