问题
I have a report that includes a sub report. I need to add a same sub report with minor modification for the report. Is there a way to copy one existing report within the main report, paste it, then go into that new sub report and only have to make the changes required for the slight differences between the sub reports. Please let me know.
回答1:
- Open the existing subreport and do a
save subreport as
and save a local copy. - now make the necessary changes in that saved copy.
- Add the changed subreport by using option
insert sub report
andExisting report.
回答2:
You will need two reports 1) Main Report 2) Subreport
1) Create a new standalone report that will be your Sub report
2) On you Main report, Click Insert Subreport -> Select Choose Existing Report -> Browse to the newly created subreport -> OK.
3) You will have a subreport that want. Now add links between sub report and Main report using Subreport links
4) This way you can add the same report multiple times and then in each subreport, you can do the individual changes you wish to do on each subreport, without having to change the whole report everytime.
Hope it helps.
The slight problem with @Siva answer is if you go into a Subreport and then go File -> Save As, Crystal still prompts to save the Main report which is now incl the Subreport and not the Subreport by itself. Hence in Step 3 Siva's answer the whole Main report would get added, instead of just the subreport.
来源:https://stackoverflow.com/questions/22242470/copy-and-paste-subreport-within-the-main-report