0

我正在将我的报告从 .rdl 报告打印到 PDF,我上面有不同的字段,当然这一切都来自数据库,我现在遇到的有趣问题是,当其中一个字段有 1 或 2 个换行符时在字段的开头它只是压制它们!但是如果我在换行符之前添加任何字符,甚至是一个简单的“。” (点)然后换行符就像他们应该的那样。

我正在尝试解决这个问题,有什么想法吗?

我需要有这些换行符来对齐不同的列,当发生这种情况时,列将无法正确对齐。

4

1 回答 1

0

I've seen this before, but when I just tried to reproduce the problem, I wasn't able to.

Make sure that your text cells are not set to Markup type: HTML. This would trim whitespace. They should be set to None.

I just correctly prefixed fields with line breaks both from a SQL query (Char(13) + Char(10) + FieldName as TestField2) and in a SSRS calculated field (Environment.NewLine + Fields!FieldName.Value)

于 2012-01-18T01:08:05.403 回答