2014-03-03 25 views
0

这是我再次询问水晶报告:D公式中的水晶报表行对象

我想问我该如何在水晶报告中做到这一点?

“In Accredited Hospital”是一个数据库项目,而来自a-g的项目是硬编码的。

enter image description here

我试图执行此操作在公式字段但是我的结果是不一样的上面的图片,是否有任何其他的解决这个?

这是我的结果

enter image description here

式I中:

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} 
+0

你想得到'晶体'输入像图像? – Siva

+0

你同样的形象1.是否有可能?如果没有,是否有其他方法可以做到这一点? – user3068888

+0

从哪里得到'受MBL'限制第2列的值? – Siva

回答

0

按照下面的过程,因为数据是硬编码的。

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"... 

就像扩展到所有的

+0

这不起作用,因为数据是从数据库中提取的。 – user3068888