<i id='eO5Zq'><tr id='eO5Zq'><dt id='eO5Zq'><q id='eO5Zq'><span id='eO5Zq'><b id='eO5Zq'><form id='eO5Zq'><ins id='eO5Zq'></ins><ul id='eO5Zq'></ul><sub id='eO5Zq'></sub></form><legend id='eO5Zq'></legend><bdo id='eO5Zq'><pre id='eO5Zq'><center id='eO5Zq'></center></pre></bdo></b><th id='eO5Zq'></th></span></q></dt></tr></i><div id='eO5Zq'><tfoot id='eO5Zq'></tfoot><dl id='eO5Zq'><fieldset id='eO5Zq'></fieldset></dl></div>
  • <tfoot id='eO5Zq'></tfoot>

          <bdo id='eO5Zq'></bdo><ul id='eO5Zq'></ul>
      1. <legend id='eO5Zq'><style id='eO5Zq'><dir id='eO5Zq'><q id='eO5Zq'></q></dir></style></legend>

        <small id='eO5Zq'></small><noframes id='eO5Zq'>

      2. Crystal Reports:传递多行参数值

        Crystal Reports: Passing Multiline Parameter Values(Crystal Reports:传递多行参数值)
        • <i id='71dVw'><tr id='71dVw'><dt id='71dVw'><q id='71dVw'><span id='71dVw'><b id='71dVw'><form id='71dVw'><ins id='71dVw'></ins><ul id='71dVw'></ul><sub id='71dVw'></sub></form><legend id='71dVw'></legend><bdo id='71dVw'><pre id='71dVw'><center id='71dVw'></center></pre></bdo></b><th id='71dVw'></th></span></q></dt></tr></i><div id='71dVw'><tfoot id='71dVw'></tfoot><dl id='71dVw'><fieldset id='71dVw'></fieldset></dl></div>

            <legend id='71dVw'><style id='71dVw'><dir id='71dVw'><q id='71dVw'></q></dir></style></legend>

              <bdo id='71dVw'></bdo><ul id='71dVw'></ul>

              1. <tfoot id='71dVw'></tfoot>

                  <small id='71dVw'></small><noframes id='71dVw'>

                    <tbody id='71dVw'></tbody>
                  本文介绍了Crystal Reports:传递多行参数值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想像这样将一些参数传递给 Crystal Report:

                  I want to pass some parameters to a Crystal Report like this:

                  ReportDocument.DataDefinition.FormulaFields[parameterName].Text   = 'Text';
                  

                  这很好用,除非我想从 ASPX 传递一个多行文本框(包含 和 字符.)

                  This workes fine unless I want to pass a multiline textbox from ASPX (containing and chars.)

                  reportviewer 报告缺少与此字符串匹配的 '.".

                  The reportviewer reports that "The matching ' for this string is missing.".

                  是否有任何示例/列表/建议如何解析(多行)文本和完成这项工作?

                  Is there any example/list/suggestion how to parse the (multiline) text and make this work?

                  谢谢,

                  斯特凡

                  推荐答案

                  如果你想保留换行符,你应该用 sindre j 描述的一些模糊的东西替换它们.为了使换行符在 Crystal Reports 中正确显示,您需要将 Crystal Report 公式中的晦涩字符替换为 html 换行符.然后将公式字段添加到报告中并右键单击,选择格式字段",选择段落"选项卡,并将文本解释"更改为HTML 文本".您还需要确保在通用"选项卡上选中可以增长"属性.请参见下面的示例公式:

                  If you want to retain line breaks you should replace them with something obscure as described by sindre j. In order for the line breaks to display correctly in Crystal Reports you need to replace the obscure characters in a Crystal Report formula with html breaks. Then add your formula field to the report and right-click, select 'Format Field', select the 'Paragraph' tab, and change the 'Text Interpretation' to 'HTML Text'. You also need to make sure the 'Can Grow' attribute is checked on the 'Common' tab. See the example formula below:

                  <代码>"<html>"+ 替换({?ParameterField}, "___", "<br>") + "<html/>"

                  希望这会有所帮助.

                  这篇关于Crystal Reports:传递多行参数值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  How can I force the PropertyGrid to show a custom dialog for a specific property?(如何强制 PropertyGrid 显示特定属性的自定义对话框?)
                  Associate attribute with code generated property in .net(将属性与 .net 中的代码生成属性相关联)

                        <tbody id='iG6rB'></tbody>
                      <i id='iG6rB'><tr id='iG6rB'><dt id='iG6rB'><q id='iG6rB'><span id='iG6rB'><b id='iG6rB'><form id='iG6rB'><ins id='iG6rB'></ins><ul id='iG6rB'></ul><sub id='iG6rB'></sub></form><legend id='iG6rB'></legend><bdo id='iG6rB'><pre id='iG6rB'><center id='iG6rB'></center></pre></bdo></b><th id='iG6rB'></th></span></q></dt></tr></i><div id='iG6rB'><tfoot id='iG6rB'></tfoot><dl id='iG6rB'><fieldset id='iG6rB'></fieldset></dl></div>
                      <tfoot id='iG6rB'></tfoot>

                    • <legend id='iG6rB'><style id='iG6rB'><dir id='iG6rB'><q id='iG6rB'></q></dir></style></legend>

                          <bdo id='iG6rB'></bdo><ul id='iG6rB'></ul>

                            <small id='iG6rB'></small><noframes id='iG6rB'>