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

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

    1. <tfoot id='xs7xU'></tfoot>
    2. <i id='xs7xU'><tr id='xs7xU'><dt id='xs7xU'><q id='xs7xU'><span id='xs7xU'><b id='xs7xU'><form id='xs7xU'><ins id='xs7xU'></ins><ul id='xs7xU'></ul><sub id='xs7xU'></sub></form><legend id='xs7xU'></legend><bdo id='xs7xU'><pre id='xs7xU'><center id='xs7xU'></center></pre></bdo></b><th id='xs7xU'></th></span></q></dt></tr></i><div id='xs7xU'><tfoot id='xs7xU'></tfoot><dl id='xs7xU'><fieldset id='xs7xU'></fieldset></dl></div>
      <legend id='xs7xU'><style id='xs7xU'><dir id='xs7xU'><q id='xs7xU'></q></dir></style></legend>

    3. 如何将 Textbox1 值设置为 Cystal 报告的公式字段

      How To Set Textbox1 Value Into Formula Field Of Cystal Reports(如何将 Textbox1 值设置为 Cystal 报告的公式字段)

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

    4. <tfoot id='fihk6'></tfoot>
        • <bdo id='fihk6'></bdo><ul id='fihk6'></ul>
            <tbody id='fihk6'></tbody>

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

              • <legend id='fihk6'><style id='fihk6'><dir id='fihk6'><q id='fihk6'></q></dir></style></legend>
                本文介绍了如何将 Textbox1 值设置为 Cystal 报告的公式字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想将 textbox1 的值设置到水晶报表的公式字段中,并在水晶报表中使用相同的值.

                I want to set textbox1 value into formula field of crystal reports and Utilise the same value into crystal reports.

                假设我的 Textbox1 值为 12000",我想将其设置为公式字段并将其用于水晶报表.是否可以?.是的,然后如何?

                Suppose my Textbox1 value is "12000" and I want to set it to formula field and utilize the same into crystal reports. Is it possible?. And yes then How?.

                注意:textbox1 位于 CrystalReportviewer1 的顶部.

                非常简单,只需创建报告类的实例并在您的 Crystalreportviewer 源中设置 textBox 值,如下所示:

                It is very simple just create the instance of the reports class and set the textBox value in your crystalreportviewer source as under:

                PLCrystReport plc = new PLCrystReport();
                plc.DataDefinition.FormulaFields["ttt"].Text = "" + textBox1.Text + ""; 
                

                首先,您必须在水晶报表中创建公式字段并设置上述代码,然后将公式字段复制到水晶报表中.它将文本框的指定值显示到公式字段中.

                For above first you have to create the formula field in your crystal reports and set the above code then after copy your formula field to your crystal reports. It will shows the specified value of textbox into formula field.

                注意 ["ttt"] 是公式字段名称.提供到水晶报表中.

                Note ["ttt"] is the formula field name. which provided into crystal reports.

                推荐答案

                Dim RptForm As CrystalDecisions.CrystalReports.Engine.ReportDocument
                
                Dim T As CrystalDecisions.CrystalReports.Engine.TextObject
                
                RptForm = New MyCrystalReport()
                
                T = RptForm.ReportDefinition.Sections(0).ReportObjects("TXTCNAME")
                
                T.Text = DTPTDate.Value
                

                这里的 TXTCNAME 是 Crystal Report 的 Sections(0) 中文本框的名称

                Here TXTCNAME is the name of textbox present in Sections(0) of Crystal Report

                MyCrystalReport 是您要使用的水晶报表.

                MyCrystalReport is the crystal Report you want to use.

                这篇关于如何将 Textbox1 值设置为 Cystal 报告的公式字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Adding DbContextOptions in Startup.cs not registering data store(在 Startup.cs 中添加 DbContextOptions 未注册数据存储)
                Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)
                    1. <legend id='CcRf0'><style id='CcRf0'><dir id='CcRf0'><q id='CcRf0'></q></dir></style></legend>
                      <i id='CcRf0'><tr id='CcRf0'><dt id='CcRf0'><q id='CcRf0'><span id='CcRf0'><b id='CcRf0'><form id='CcRf0'><ins id='CcRf0'></ins><ul id='CcRf0'></ul><sub id='CcRf0'></sub></form><legend id='CcRf0'></legend><bdo id='CcRf0'><pre id='CcRf0'><center id='CcRf0'></center></pre></bdo></b><th id='CcRf0'></th></span></q></dt></tr></i><div id='CcRf0'><tfoot id='CcRf0'></tfoot><dl id='CcRf0'><fieldset id='CcRf0'></fieldset></dl></div>

                    2. <small id='CcRf0'></small><noframes id='CcRf0'>

                      1. <tfoot id='CcRf0'></tfoot>
                          <tbody id='CcRf0'></tbody>
                          <bdo id='CcRf0'></bdo><ul id='CcRf0'></ul>