For complex frScript
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
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
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