Crystal reports 公式中的水晶报表行对象

Crystal reports 公式中的水晶报表行对象,crystal-reports,report,Crystal Reports,Report,又是我在问水晶报告:D 我想问一下如何在crystal report中实现这一点 “经认可的医院”是一个数据库项,来自a-g的项目是硬编码的 我尝试在公式字段中执行此操作,但是我的结果与上图不同,是否有其他解决方案 这是我的结果 使用的公式一: stringVar emergencyCare := ""; if {DBField} = "In Accredited Hospitals" then emergencyCare := "In Accredited Hospital

又是我在问水晶报告:D

我想问一下如何在crystal report中实现这一点

“经认可的医院”是一个数据库项,来自a-g的项目是硬编码的

我尝试在公式字段中执行此操作,但是我的结果与上图不同,是否有其他解决方案

这是我的结果

使用的公式一:

    stringVar emergencyCare := "";
if {DBField} = "In Accredited Hospitals" then
    emergencyCare := "In Accredited Hospitals" &
                     "</br>a. Doctor's Services" &
                     "</br>b. Emergency Room Fees" &
                     "</br>c. Medicines used for immediate relief during treatment" &
                     "</br>d. Oxygem, Intravenous fluids and blood products" &
                     "</br>e. Dressings, conventional casts (plaster of Paris) and sutures" &
                     "</br>f. X-Rays, laboratory and diagnostic examinations, and other medical services related to the emergency treatment of the patient" &
                     "</br>g. Room Upgrade in case of room unavailability" 

else
    emergencyCare := {DBField}
stringVar紧急护理:=”;
如果{DBField}=“在认可医院”,则
急救:=“在认可的医院”&
“a.医生服务”&
“b.急诊室费用”&
“
c.治疗期间用于立即缓解的药物”&
d.氧气、静脉输液和血液制品&
e.敷料、常规石膏(巴黎石膏)和缝线&
f.X光检查、实验室检查和诊断检查,以及与患者急救相关的其他医疗服务& “
g.如果房间不可用,则升级房间” 其他的 紧急护理:={DBField}
由于数据是硬编码的,请遵循以下流程

1. Create 8 detail sections
2. Dont create any formulas just take 16 text fields
3. Insert line at the bottom of every detail section and on line vertically so that it resembles table.
4. Now write you data as per the your requirement in every text field and preview the report.
如果这不起作用,请告诉我

编辑:如果数据来自数据库:

取16个公式,写出16个条件,如第一个公式:

     `if {DBField} = "In Accredited Hospitals" then
        emergencyCare := "In Accredited Hospitals"` 
 if {DBField} = "In Accredited Hospitals" then
        emergencyCare := "a. Doctor's Services"... 

像这样扩展到所有

你想得到与图像一样精确的
晶体
输出吗?是的,与图像1相同。可能吗?如果没有,是否有其他方法可以做到这一点?根据MBL,您从哪里获得
我的意思是第2列的值?