Call external program

edited 9:46AM 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 9:46AM
    If there is not other option you can easy create a function in TFrxReport.OnUserFunction and call ShellExecute()
  • edited 9:46AM
    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 9:46AM
    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 9:46AM
    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 9:46AM
    Thank you anyway, somehow I'll find a workaround...
  • gpigpi
    edited 9:46AM
    See a sample in C:\Program Files\FastReports\FastReport Studio\Examples\VisualC++\UserFunctionExample folder

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.