Display data in crystal report in column

左心房为你撑大大i 提交于 2020-01-06 15:42:41

问题


I want to display crystal report in column pattern. I have successfully retrieved the data from student table (with a stored procedure). but want to display in this pattern

Student Name | Student Name

First Student Name | Second Student Name
ThirdStudent Name | FourthStudent Name

please tell me how can i do this.


回答1:


This can be done in a few steps, this will only work if you don't need to display other fields for each student.

Step 1 - Sort the data by the name you want to show on two columns.

Step 2 - Add the following formula:

IF (NOT(OnLastRecord)) THEN
  {StudentName} + ", " + Next({StudentName})
ELSE
  ""

Step 3 - Add the formula to the detail section.

Step 4 - Go into the section expert and set the suppression formula for the detail section to:

RecordNumber MOD 2 = 1


来源:https://stackoverflow.com/questions/10633227/display-data-in-crystal-report-in-column

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