how to create a subreport in code?
subPage := TfrxReportPage.Create(report);
subPage.CreateUniqueName;
subPage.SetDefaults;
subPage.Font.Charset := GB2312_CHARSET;
subPage.Font.Height := 12;
subPage.Font.Size := 9;
cross := TfrxCrossView.Create(subPage);
cross.Parent := subPage;
cross.Top := 0;
cross.Left := 0;
subReport := TfrxSubreport.Create(page);
subReport.Parent := Band;
subReport.Page := subPage;
I Create the subreport with crossView like that, but it dosen't work. How can I fix it?
subPage.CreateUniqueName;
subPage.SetDefaults;
subPage.Font.Charset := GB2312_CHARSET;
subPage.Font.Height := 12;
subPage.Font.Size := 9;
cross := TfrxCrossView.Create(subPage);
cross.Parent := subPage;
cross.Top := 0;
cross.Left := 0;
subReport := TfrxSubreport.Create(page);
subReport.Parent := Band;
subReport.Page := subPage;
I Create the subreport with crossView like that, but it dosen't work. How can I fix it?
Comments