Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force foxypreviewer to use report components from
Message
De
04/12/2011 08:11:00
 
 
À
04/12/2011 03:47:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
01530271
Message ID:
01530318
Vues:
44
>>Unfortunately, it wont be able to access these files if they are embedded in your EXE, because FoxyPreviewer is an external APP.
>>You have 2 solutions:
>>
>>1 - Embed FoxyPreviewer in your EXE as well, and instead of calling FoxyPreviewer.APP, call the FoxyPreviewer.prg file to initialize it
>
>I embedded all components to exe using
>
>_REPORTBUILDER = "frxbuilder.prg"
>_REPORTPREVIEW = "frxpreview.prg"
>_REPORTOUTPUT = "frxoutput.prg"
>EXTERNAL PROCEDURE frxbuilder.prg,frxpreview.prg,frxoutput.prg
>FOXYPREVIEWER()
>
>Bot got error:
>
>---------------------------
>FoxyPreviewer not loaded!
>---------------------------
>Could not find the 'ReportOutput.App' file. This file is needed to have the new features of FoxyPreviewer.
>Please make sure to set the global variable '_REPORTOUTPUT' with the full path of this file or save it in a folder that your app can reach
>
>How to force foxy to use _REPORTOUTPUT builder from .exe file ?
>MS and Doug reporting work ok from exe file with those settings, no additional files needed.
>
>PS. VFP 9 community and Microsoft original help file contains:
>
>Instead of distributing the compiled application, you may choose to incorporate the source code of the report builder directly into your application's project.
>
>To integrate the report builder source into your application
>Unpack the xsource.zip file found in the Tools\xsource\ folder under the Visual FoxPro home directory.
>
>In the main program of your application, use code similar to the following:
>
>* Ensure the report builder source is pulled into the project:
>EXTERNAL PROCEDURE frxbuilder.prg
>* Set the system variable to use the local source version:
>_REPORTBUILDER = "frxbuilder.prg"


Please make another test:

Instead of putting :
FoxyPreviewer()

remove that line, and replace it with :

SET PROCEDURE TO FoxyPreviewer ADDITIVE && DOnt forget the ADDITIVE clause !!!

Since you're using it in the complete mode, you don't need the initialization for the simplified, that occurs when you "Do FoxyPreviewer"

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform