Call external program

edited 5:54PM in FastReport 4.0
Dear all,

I need to first run a report and then call an external program - can I call the external program from within the report?
I read about the URL property of MemoView, but can't run .bat and also can't pass parameters to the .exe called, correct?

Any help appreciated!
Thank you
Marty

Comments

  • edited 5:54PM
    If there is not other option you can easy create a function in TFrxReport.OnUserFunction and call ShellExecute()
  • edited 5:54PM
    Sound good - how would I do that?
    I found this http://www.fast-report.com/en/documentatio...he%20report.htm
    but don't quite understand...
  • gpigpi
    edited 5:54PM
    Replace
    // necessary logic
    with your code in function TForm1.MyFunc(s: String ; i: Integer): Boolean;
  • edited August 2011
    Can I do this with Fast Report Studio? I still don't understand where to put this code and what exactly to write... [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Edit: Typo[/img]
  • edited 5:54PM
    marty wrote: »
    Sound good - how would I do that?
    I found this http://www.fast-report.com/en/documentatio...he%20report.htm
    but don't quite understand...

    I prefer this way but with TfrxReport.OnUserFunction is a litle easy.
    Your big problem is that you do not work into an application development environment like Delphi. You do not have accesses to TfrxReport and custom functions....
  • edited 5:54PM
    Thank you anyway, somehow I'll find a workaround...
  • gpigpi
    edited 5:54PM
    See a sample in C:\Program Files\FastReports\FastReport Studio\Examples\VisualC++\UserFunctionExample folder

Leave a Comment