Those who know have used Active Reports before; know that it isn't straightforward to make a copy of a report. There are scenarios where you'd it is useful to clone a report to use as a base for a new one, but if you try to "right click, copy and paste" it creates more problems that it solves.
So here's a list of steps that will allow you to create an exact copy of an Active Report:
-
- Right-Click the original report and select "Open With…"
- Choose "HTML/XML Editor" from the list of options and select "Ok"
- If there's a warning referring to the document being open, click "Yes"
- Select and Copy the xml of this report
- Right-Click the new report and select "Open With…"
- Choose "HTML/XML Editor" from the list of options and select "Ok"
- If there's a warning referring to the document being open, click "Yes"
- Select all the text and paste the previously copied XML.
- Find the "ActiveReportsLayout" element at the top of the file and change the CodeFile property to the name of your new report.
- Close all windows
- Open the new report and you can verify that all the elements were copied.
- Now the only thing left to do is to copy the C# functions that you need from the original report if required.
If you have any other tips, let me know!