Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Output a report in PDF format
Message
From
13/04/2010 09:48:52
 
 
To
13/04/2010 08:07:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01455338
Message ID:
01459921
Views:
87
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform