I discoverd a strange behaviour, when I try to copy the ReporFooterSectoion or PageFooterSection, programmatically with c# RAS. If the SrcRpt was created with the CR-Designer I get this Error-Msg:
ERROR-Msg: Invalide Sectiontype
Even if I try to copy a new created, empty, report.
I dont get this error if I copy a report I created programmatically. Link
Why? I don't get the difference to the other sections/areas (like ReportHeader, DetailsSection, ...)?
Why can I copy these sections with all contained objects, but not these two?
simplified Copy-Code:
for each ( area in srcAreas ) { var sectionIndex = 0; for each ( srcSection in srcSections) { dstRpt.ReportDefController.ReportSectionController.Add (srySection, area, sectionIndex); sectionIndex++; } }
Jessica