>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