You need to specify a different name for each object in each page.
Because you are creating without specifying a name, they all get a blank name, and only the 1st one survives, and you see no exceptions being raised
Try something like this:
CODE
for I := 1 to frxReport1.PagesCount - 1 do
begin
vPage := frxReport1.Pages[I] as TfrxReportPage;
vLine := TfrxLineView.Create(vPage);
vLine.CreateUniqueName; // << good start, but not enough because you repeat the same in other pages
vLine.name := vLine.name + vPage.name; // considering that all pages have different names (page1, page2,etc), this will garantee its uniqueness
vLine.SetBounds(1, 1, 100, 1);
end;
QUOTE(ssnews @ Jan 26 2010, 07:56 AM)

QUOTE(ssnews @ Jan 25 2010, 03:28 PM)

Is there a complete conversion guide from FastReport 2.5 to 4.0?
Thanks,
Marco.
I need a conversion guide because otherwise is too difficult for me to convert my code from FastReport 2.5 to 4.0...
Infact I can't find procedures like "vPage.ChangePaper" or properties like "vPage.PrnInfo.Ofx" or "vPage.PrnInfo.Ofy"...
In every case I always can't draw lines inside all pages with the following code:
CODE
var
vPage: TfrxReportPage;
vLine: TfrxLineView;
I: Integer;
begin
for I := 1 to frxReport1.PagesCount - 1 do
begin
vPage := frxReport1.Pages[I] as TfrxReportPage;
vLine := TfrxLineView.Create(vPage);
vLine.SetBounds(1, 1, 100, 1);
end;
end;
...lines are printed only in the first page. What I have to do?
thanks in advice to all,
Regards,
Marco.