简体   繁体   English

将子报表重新导入到Crystal Reports Java中

[英]Reimport a SubReport into Crystal Reports Java

My Requirement: 我的要求:

  • I have a SubReport which is suppose to work as a header of all other reports. 我有一个SubReport,它应该用作所有其他报告的标题。
  • Any change in this header report should be directly displayed in other reports . 此标题报告中的任何更改应直接显示在其他报告中。 The header template contains only some information like name & logo. 标题模板仅包含一些信息,例如名称和徽标。

What i did: 我做了什么:

  • Created a subreport as per myrequirement 根据我的要求创建了一个子报告
  • Inserted it into my Main report 将其插入我的主报告中
  • selected the option of "Re-import while opening". 选择“打开时重新导入”选项。

Problem: 问题:

  • It doesn't work as i thought. 它不像我想的那样工作。
  • Every time i do some changes in my header report, i need to manually re - import the subreport. 每次我在标头报告中进行一些更改时,都需要手动重新导入子报告。

Although this has already been answered - I'm chiming in because this confirmed what I had found. 尽管已经回答了这个问题-我很喜欢,因为这证实了我的发现。 Using Crystal Reports Version 11.0.0.1282 - The Re-Import When Opening doesn't seem to work as advertised. 使用Crystal Reports版本11.0.0.1282-“打开时重新导入”似乎不像广告中所述。 I have to manually touch each Main report and re-import the SubReport to get any changes reflected. 我必须手动触摸每个主报表,然后重新导入子报表,以反映所有更改。

I am not amused. 我不觉得好笑。

I had the same problems with CR. 我在CR上也遇到了同样的问题。

The automatic import does not work at all. 自动导入根本不起作用。 Working with the model (at least in CR XI.5) didn't work also, but they might have worked on it in 2008. 使用该模型(至少在CR XI.5中)也不起作用,但他们可能在2008年就对其进行了研究。

Reworking the reports in Java was very slow also. 用Java重新编写报告也非常缓慢。 I take the resulting report now, and use a Java PDF library to overlay the report over an PDF (also makes watermarks etc. easy), and have removed all subreports. 我现在获取结果报告,并使用Java PDF库将报告覆盖在PDF上(这也使水印等变得容易),并删除了所有子报告。

I will definitely switch to Jasper Reports when I get the time to do so, because I noticed that working with CR is a pain in the a**. 如果有时间的话,我一定会切换到Jasper Reports,因为我注意到使用CR确实很麻烦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM