Reimporting crystal subreports after copy to a different folder
Posted on 2009-07-09
I have an environment where we are developing reports for our WM software and we have Test, Train and Production systems. When we develop a report it is done in the test environment. After approval we copy to the train environment and then change all the data sources to point to the train environment. Once approved, then we do the same to get it into the Production environment. This works great for all the main reports. The problem comes with the subreports. Since crystal embeds the subreport into the main report, when i copy it to the next environment and then try to reimport the subreport it will look to the test environment for the subreport and then the data source is wrong. How do I modify the main report so it can find the subreport in the new environment? I have found if I delete a subreport from the test location and then reimport it in the main report it will have me search for the subreport as it does not find it because it does not exist after getting deleted. This is not a very good way to do this so I am looking for a better way. Please let me know how others handle this type of scenario.