Copy and paste subreport within the main report

流过昼夜 提交于 2019-12-23 09:24:45

问题


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:


  1. Open the existing subreport and do a save subreport as and save a local copy.
  2. now make the necessary changes in that saved copy.
  3. Add the changed subreport by using option insert sub report and Existing 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!