在水晶报表中显示两个不同的部分

Display two different section in crystal report
2021-05-11
  •  译文(汉语)
  •  原文(英语)

我想在一个水晶报表中显示两个不同的部分.在我的报告中,我创建了两个部分,但是它们都显示相同的数据,如下图所示.

在水晶报表中显示两个不同的部分

显示不同的数据需要什么设置?谢谢.

这是我的水晶报表设计的图片

在水晶报表中显示两个不同的部分

速聊1:
你能解释更多吗?这两个部分应该显示什么?您正在使用分组吗?也许显示您的报告设计的屏幕截图.
速聊2:
在水晶报表中,我想显示不同员工的年度交易..我试图在一个报表中显示两名员工的数据,但它两次显示一名员工的数据
速聊3:
然后很可能将字段放在错误的部分.您可以张贴报告设计的屏幕截图吗?
速聊4:
我正在上传,但我告诉你我已经创建了两个部分的详细信息部分
速聊5:
我已经上传了水晶报表的设计.
解决过程1

看到报表设计之后,这里是您的问题:仅因为您有两个详细信息部分并不意味着它将显示两个不同的值.报表的结构就像一本书:报表的页眉和页脚就像封面和封底一样-您只在信息上放了一次想看的信息.

页面页眉和页脚应包含您想在顶部和底部的每一页上看到的信息.如果您的数据是按某些条件(例如书的章节)分组的,则"组页眉"和"页脚"用于显示信息.

"详细信息"部分显示所有数据或与组有关的数据-如各章中的文字.

因此,在您的情况下,我将基于您的员工创建一个组.将所有标题信息(报告中的前三行)放在页面标题中.在"组头"中,将所有内容放置在第4行和第5行中.第6行至第17行进入"详细信息"部分.所有总计的第18行进入组页脚.从第19行开始的所有内容都进入了页脚.我希望这是有道理的,并且我很乐意为您提供进一步的帮助.

I want to display two different section in one crystal report. In my report i have created two section but they both display same data as you can saw in below image.

Display two different section in crystal report

What setting is needed for displaying different data? Thanks.

Here image of my crystal report design

Display two different section in crystal report

Talk1:
Can you explain some more? What are the two sections supposed to show? Are you using grouping? Maybe show a screenshot of your report design.
Talk2:
In crystal report i want to display yearly transaction of different employee..i am trying to display data of two employee in one report but it displays data of one employee two times
Talk3:
Then most likely you put the fields in the wrong section. Can you post a screenshot of your report design?
Talk4:
I am uploading but i tell you that i have created two section of details sections
Talk5:
I have uploaded design of crystal report.
Solutions1

After seeing the report design, here are your issues: Just because you have two detail sections doesn't mean it will show you two different values. A report is structured like a book: The Report Header and Footer are like the cover and back page - you only put information on them that you want to see once.

The Page Header and Footer should contain information that you want to see on every page at the top and bottom. The Group Header and Footer are used to show information if your data is grouped by certain criteria - like chapters of a book.

The Detail Section shows either all data or the data that pertains to a group - like the text within the chapters.

So, in your case I would create a group that is based on your employee. Put all your header information (the top 3 lines in your report) in the Page Header. In the Group Header you put everything in line 4 and 5. Line 6 through 17 go into the Detail Section. Line 18 with all the totals goes into the Group Footer. Everything from line 19 on goes into the Page Footer. I hope this makes sense and I'll be more than happy to help out further.

转载于:https://stackoverflow.com/questions/20218231/display-two-different-section-in-crystal-report

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入