• <legend id='xMpEH'><style id='xMpEH'><dir id='xMpEH'><q id='xMpEH'></q></dir></style></legend>

        <i id='xMpEH'><tr id='xMpEH'><dt id='xMpEH'><q id='xMpEH'><span id='xMpEH'><b id='xMpEH'><form id='xMpEH'><ins id='xMpEH'></ins><ul id='xMpEH'></ul><sub id='xMpEH'></sub></form><legend id='xMpEH'></legend><bdo id='xMpEH'><pre id='xMpEH'><center id='xMpEH'></center></pre></bdo></b><th id='xMpEH'></th></span></q></dt></tr></i><div id='xMpEH'><tfoot id='xMpEH'></tfoot><dl id='xMpEH'><fieldset id='xMpEH'></fieldset></dl></div>

        • <bdo id='xMpEH'></bdo><ul id='xMpEH'></ul>
        <tfoot id='xMpEH'></tfoot>

        <small id='xMpEH'></small><noframes id='xMpEH'>

      1. Crystal Reports - 如果包含图表,则数据重复

        Crystal Reports - Data repeating if chart is included(Crystal Reports - 如果包含图表,则数据重复)
      2. <legend id='8I3D8'><style id='8I3D8'><dir id='8I3D8'><q id='8I3D8'></q></dir></style></legend>
        <i id='8I3D8'><tr id='8I3D8'><dt id='8I3D8'><q id='8I3D8'><span id='8I3D8'><b id='8I3D8'><form id='8I3D8'><ins id='8I3D8'></ins><ul id='8I3D8'></ul><sub id='8I3D8'></sub></form><legend id='8I3D8'></legend><bdo id='8I3D8'><pre id='8I3D8'><center id='8I3D8'></center></pre></bdo></b><th id='8I3D8'></th></span></q></dt></tr></i><div id='8I3D8'><tfoot id='8I3D8'></tfoot><dl id='8I3D8'><fieldset id='8I3D8'></fieldset></dl></div>
          <tbody id='8I3D8'></tbody>

              • <bdo id='8I3D8'></bdo><ul id='8I3D8'></ul>

                1. <small id='8I3D8'></small><noframes id='8I3D8'>

                  <tfoot id='8I3D8'></tfoot>
                2. 本文介绍了Crystal Reports - 如果包含图表,则数据重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们使用 Crystal Reports XI R3 进行报告.我们创建了类型化的数据集,作为报告的数据源.

                  We are using Crystal Reports XI R3 for our reporting purposes. We have created typed dataset which act as the datasource for the reports.

                  我遇到了一个问题,包括条形图以及其中一份报告上的网格.默认情况下,图表嵌入到标题部分,网格是从详细信息部分生成的.

                  I am facing an issue including a bar chart along with the grid on one of the reports. The chart gets embedded into the header section by default and the grid is generated out of the details section.

                  如果我在没有图表的情况下设计报告,则一切正常.如果我提供 8 行数据,它也会在报告中发布 8 行.但是,如果我在同一个报告中包含图表,详细信息部分中的数据会成倍增加,并且我会得到 64 行或具有相同数据源的数据.

                  If I design the report without the chart, it all works fine. If I supply 8 rows of data, it publishes 8 rows in the report too. But if I include a chart on the same report, the data in the details section gets multiplied, and I get 64 rows or something with the same datasource.

                  这应该是一个非常直接的功能,但它似乎不适合我.我尝试包含一个子报告并在子报告中包含详细信息部分,它工作正常.但是,我也不能采用这种方法,因为该报表本身会作为子报表包含到另一个报表中,而且我们不能在 Crystal 中嵌套子报表.

                  This should be a pretty straight forward functionality, but it doesn't seem to be working for me. I tried include a sub-report and have the details section in the sub-report and it works fine. But, I can't go with this approach either as this report in itself would be included to another as a sub-report and we cant have nested sub-reports in Crystal.

                  请帮我指点一下可能出了什么问题?

                  Please help me with some pointers on what could be going wrong ?

                  在进一步调查中,使用两个不同的表格来填充图表和网格似乎存在问题.如果我对两者都使用一个表,它可以正常工作.

                  On further investigation, it looks like a problem with having two different tables to populate the chart and the grid. If I use a single table for both, it works fine.

                  附上@Kalyan 要求的截图:

                  Attaching screenshot on @Kalyan's request:

                  推荐答案

                  问题确实是针对单个报告使用多个不相关的表.Crystal Reports 默认情况下不允许使用多个表,除非它们以某种方式链接.如果您不指定链接,它会尝试自行应用链接并在发布报告时运行联接.

                  The issue indeed was with using multiple unrelated tables for a single report. Crystal Reports by default doesn't allow using multiple tables, unless they are linked in someway. If you dont specify a link, it tries to apply a link on its own and runs a join while publishing the report.

                  由于这次加入,数据对我来说是重复的.

                  Due to this join, the data was getting repeated for me.

                  为了解决这个问题,我在网格对应的表的主键上创建了一个组,并使用该组生成网格并抑制了详细信息部分.问题已解决.

                  To resolve the issue, I created a group on the primary key of the table corresponding to the grid, and used the group to generate the grid and suppressed the details section. Problem resolved.

                  这篇关于Crystal Reports - 如果包含图表,则数据重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding DbContextOptions in Startup.cs not registering data store(在 Startup.cs 中添加 DbContextOptions 未注册数据存储)
                  Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                  Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                  Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                  Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                  Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)

                    <i id='T8Jke'><tr id='T8Jke'><dt id='T8Jke'><q id='T8Jke'><span id='T8Jke'><b id='T8Jke'><form id='T8Jke'><ins id='T8Jke'></ins><ul id='T8Jke'></ul><sub id='T8Jke'></sub></form><legend id='T8Jke'></legend><bdo id='T8Jke'><pre id='T8Jke'><center id='T8Jke'></center></pre></bdo></b><th id='T8Jke'></th></span></q></dt></tr></i><div id='T8Jke'><tfoot id='T8Jke'></tfoot><dl id='T8Jke'><fieldset id='T8Jke'></fieldset></dl></div>
                      <bdo id='T8Jke'></bdo><ul id='T8Jke'></ul>

                      <tfoot id='T8Jke'></tfoot><legend id='T8Jke'><style id='T8Jke'><dir id='T8Jke'><q id='T8Jke'></q></dir></style></legend>

                      <small id='T8Jke'></small><noframes id='T8Jke'>

                        <tbody id='T8Jke'></tbody>