For complex frScript

edited 4:00AM in FastReport 4.0
Hello everybody
For complex frScript
I have 2 Report Page, through the conditional to each display a Page,
For example:
for i: = 0 to 10
begin
if i = 0 then
Page1.Show
else
if i = 1 then
Page2.Show
else
if i = 3 then
Page1.Show
end;
But I found Page Only Visible property, when I set this attribute,
This page does not show all,
Feel depressed, do not know how to solve

Thank you, please help me

Comments

  • gpigpi
    edited 4:00AM
    You can assign TfrxReport.Dataset with your dataset end create report with Page1, Page2 for each record of your dataset
  • FRNLFRNL Hoogeveen - Netherlands
    edited 4:00AM
    wuda wrote: »
    Hello everybody
    For complex frScript
    I have 2 Report Page, through the conditional to each display a Page,
    For example:
    for i: = 0 to 10
    begin
    if i = 0 then
    Page1.Show
    else
    if i = 1 then
    Page2.Show
    else
    if i = 3 then
    Page1.Show
    end;
    But I found Page Only Visible property, when I set this attribute,
    This page does not show all,
    Feel depressed, do not know how to solve

    Thank you, please help me


    You should set the pages visible, your loop will show page1 and page2 because of your code anyway, so the sample is not correct to start with..

    If you need a condition to print a page or not, use a variable for that, set the report options ("Report" -> "options") to doublepass and in the beforeprint event of the page, you can run your code to make pages invisible.

    Hope this helps.

    Regards,
    Teo

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.