Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output a report in PDF format
Message
De
13/04/2010 09:48:52
 
 
À
13/04/2010 08:07:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01455338
Message ID:
01459921
Vues:
98
>The reason why I repeat the code I have in the initialize event, is because everytime the user clicks on the command button to create the PDF, a different filename must be used and the filename is build within those functions. I'm really interesting on how your preview works!

Huh, there is much easier solution for this !

RS have global object which lets you set up output file name ad-hoc anywhere in your code.
So you can have you init sequence and standard setup performed once at the begining and
depend on need, set those parameters (properties) differently any time you want.

Issue ;
_oRSGO.rsExportFolder='C:\wherever'
_oRSGO.rsExportStem='myFileName'
Right before calling
=Frx2rs(....)

And it will do the trick. No need having multimple init sequences just for this.
Send me an email at this address and will send you some more tips

HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform