Execute report from scipt code?

Hi all.

Is there any way of Re-execute the current report from script code?
What I want to do is to refresh the report by a click in prewiew, that changes the report's parameters.

And is there any way of executing another report from script code?
What I want is to execute a second report through the OnClick-event, using the value of a clickable memo as a parameter for the next report.

Thanks.

Petter

Comments

  • edited 1:48AM
    Petter S. wrote: »
    And is there any way of executing another report from script code?
    What I want is to execute a second report through the OnClick-event, using the value of a clickable memo as a parameter for the next report.

    TfrxReport from what I know can load and execute only one report at a time.
    But from script you can call your internal function to show an other report from an other instance of TfrxReport. I think this is not a problem.
  • gpigpi
    edited 1:48AM
    Try to use in script:
         Report.LoadFromFile(filename);
         Report.ShowReport;
    
    But better to use Delphi's code. See InteractiveReport demo in FR's Demos folder
  • edited 1:48AM
    gpi wrote: »
    Try to use in script:
         Report.LoadFromFile(filename);
         Report.ShowReport;
    
    But better to use Delphi's code. See InteractiveReport demo in FR's Demos folder

    Thanks! The Report.ShowReport worked fine for re-executing my report from ?? OnClick-event. I will look into the loadfromfile later.

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.