Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Dynamic created Components on a subreport

edited June 2003 in General
Hello,

I have subreports with Printbehavior = pbSection. On these Subreports I
want to create some Labels. On the first page I have all labels, on the
third and the next pages, too, but on the second page only three labels
appear at the bottom. I created the labels like this:


while NewTop < 1000 do
begin
with TppLabel(ppComponentCreate(TabReport, TppLabel)) do
begin
Band := MainChildReport.DetailBand;
AutoSize := False;
Top := NewTop;
Transparent := false;
with TabReport.PrinterSetup do
Left := trunc(PaperWidth - MarginLeft - MarginRight - RestWidth) + 1;
Width := 10;
Caption := 'SomeThing';
Height := 20;
Visible := true;
end;
inc(NewTop, 20);
end;

Why does the second page not print allright?

Thank you for help
Christine

Comments

This discussion has been closed.