Dynamic created Components on a subreport
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
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
This discussion has been closed.
Comments
Please send an example of the problem in .zip format to
support@digital-metaphors.com and we'll take a look at it for you.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com