Manual variable to own page

Good afternoon. Begin to develop FastReport and I can not understand the principle. Trying to implement such a thing. The program has a variable. In FastReport there is also the variable associated with the first. Problem: if you change a variable in the program (e.g. values of 1, 2 and 3) must print their reports - each to his page. Can you please tell me the solution.

Comments

  • gpigpi
    edited 12:24PM
    Use in the main procedure of the report script:
    begin
      Page1.Visible := <YourVar> = 1;
      Page2.Visible := <YourVar> = 2;
      Page3.Visible := <YourVar> = 3;
    end.
    
  • edited 12:24PM
    gpi wrote: »
    Use in the main procedure of the report script:
    begin
      Page1.Visible := <YourVar> = 1;
      Page2.Visible := <YourVar> = 2;
      Page3.Visible := <YourVar> = 3;
    end.
    

    Thank you. I would like to do without scripts in the report. Want to change the values directly in Delphi.
  • gpigpi
    edited 12:24PM
    wrote:
    Want to change the values directly in Delphi.
    frxReport1.Variables.Variables := 3;
  • edited November 2017
    gpi wrote: »
    gpi wrote: »
    Want to change the values directly in Delphi.
    frxReport1.Variables.Variables := 3;

    var1=1 (in program) must prints on page number 1 in report
    var2=2 (in program) must prints on page number 2 in report
    var3=3 (in program) must prints on page number 3 in report

    something like this

    for m:=1 to 3 do begin

    frxReport1.Variables := m;

    Page := TfrxReportPage.Create(frxReport1);

    end;

    dut it not works
  • edited 12:24PM
    gpi wrote: »


    )))))))))))))))))))))))))))))))

    this is my theme too, but no solution(((((((((((((

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.