首页 文章

如何在Seagate Crystal Report软件中创建多行报告

提问于
浏览
0

我正在使用Seagate Crystal Report Software . 设计完报告后,我面临着一个需要解决的典型问题 . 假设我在一列中有多个值,用','(逗号)分隔 . 我需要在多行中显示它 . 我该怎么做呢例如:

表名: Student
the student table from which report needs to be generated

该报告应如下所示:
enter image description here

我知道创建报告的基础知识 . 因此,您可以在回答时跳过所有细节 . 非常感谢 .

1 回答

  • 1

    创建名为“subject”的公式字段:

    // {@subjects}
    Replace( {table.subject}, ",", Chr(10)+Chr(13) )
    

    将此字段添加到 details 部分 .

    您还可以创建SQL表达式字段:

    // {%subjects}
    (
      REPLACE( subject, ',', CHR(10)||CHR(13) )
    )
    

相关问题