Copy Objects from one Report into another
Hi,
i have two reports, one of them has a "header", now i want to copy this header from sourcecode into my
main report, how could i do this?
source and dest are both TfrxPage Objects from two different *.fr3 Files
if i do this like this example i get a null pointer exception from fastreport...
it seems that the base report in my copied object is not registered in the destination page...
in other words how could i do this:
but instead to create a new object i like to add/copy a existing TfrxObject from another report into my main report
any ideas?
i have two reports, one of them has a "header", now i want to copy this header from sourcecode into my
main report, how could i do this?
source and dest are both TfrxPage Objects from two different *.fr3 Files
for x:=0 to source.Objects.count-1 do
begin
dest.Report.Objects.Add(source.Objects[x]);
TfrxComponent(dest.Objects[dest.Objects.Count-1]).Parent := dest;
end;
if i do this like this example i get a null pointer exception from fastreport...
it seems that the base report in my copied object is not registered in the destination page...
in other words how could i do this:
frxHeader := Tfrxheader.Create(page);
frxHeader .CreateUniqueName;
frxHeader .SetDefaults;
but instead to create a new object i like to add/copy a existing TfrxObject from another report into my main report
any ideas?
Comments
im use the version 4.13.1