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 6:04PM
    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 6:04PM
    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 6:04PM
    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