Copying report component
Posted: Mon Jun 21, 2010 4:35 am
Hello,
I'd like to copy the component:
Is there a better (safer, faster...) way than above one?
I'd like to copy the component:
Code: Select all
StiReport report;
// [...]
StiComponent originalComponent = report.GetComponentByName("A");
StiComponent newComponent = (StiComponent)originalComponent.Clone(true);
component.Parent.Components.Add(component);