stimulsoft mysql,将值传递给Stimulsoft报告参数「建议收藏」

stimulsoft mysql,将值传递给Stimulsoft报告参数「建议收藏」HiIhaveareportinwindowsformapplicationthatit’sdesignedbyStimulsoftreportgenerator.MyreportgetdatafromMySQLdatabasebyastoredprocedure.MystoredprocedurehasaparameterasPer…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

stimulsoft mysql,将值传递给Stimulsoft报告参数「建议收藏」

Hi

I have a report in windows form application that it’s designed by Stimulsoft report generator. My report get data from MySQL database by a stored procedure.

My stored procedure has a parameter as PersonalCode and my report has a parameter with same name.

I want load report file and pass a value to this parameter.

I use from some solutions that are listed in bellow, but all of them is not correct:First Way:

Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();

report.Load(“mrt file path”);

report.Compile();

report.Variables[“PersonalCode”] = 932;

report.Render();

report.Show();

Second Way:

Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();

report.Load(“mrt file path”);

report[“PersonalCode”] = 932;

report.Show();

Third Way:

Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();

report.Load(“mrt file path”);

report.Compile();

Stimulsoft.Report.Dictionary.StiDataParameter parameter = new Stimulsoft.Report.Dictionary.StiDataParameter();

parameter.Name = “PersonalCode”;

parameter.Value = “932”;

report.DataSources[“PersonalInformation”].Parameters[“PersonalCode”] = parameter;

report.Render();

report.Show();

Fourth Way:

Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();

report.Load(“mrt file path”);

report.Compile();

Stimulsoft.Report.Dictionary.StiVariable parameter = new Stimulsoft.Report.Dictionary.StiVariable(“PersonalCode”, typeof(int));

parameter.Value = “932”;

report.Dictionary.Variables[“PersonalCode”] = parameter;

report.Render();

report.Show();

Please help my,

How I can pass a value as parameter to report in .net that this parameter is a parameter for stored procedure that provide report data?

解决方案Hi

I solve my problem by bellow code:

report.Compile();

report[“Number”] = 932;

report.Render();

report.Show();

But You must attention to bellow notice:

1- Stored procedure parameter names’s must be “Number”

2- Report parameter name’s must be “Number”

3- Sent parameter name’s must be “Number”

Thanks

Open a support ticket with your question at Stimulsoft forums on :

http://forum.stimulsoft.com/[^]

There you get full support for the software developers also you provide them with code sample of your work.

Thank you

Hi

I solve my problem by bellow code:

Collapse | Copy Code

report.Compile();

report[“Number”] = 932;

report.Render();

report.Show();

But You must attention to bellow notice:

1- Stored procedure parameter names’s must be “Number”

2- Report parameter name’s must be “Number”

3- Sent parameter name’s must be “Number”

Thanks

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/158798.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Java 发送邮件的几种方式[通俗易懂]

    Java 发送邮件的几种方式[通俗易懂]发送文件的项目地址(free):https://download.csdn.net/download/qq_36474549/10741073导入jar包:activation-1.1.jar  javax.mail-1.6.2.jar内容:1.发送一封只包含文本的简单邮件   SendEmail_text.java      2.发送包含内嵌图片的邮件   Send…

    2022年5月14日
    36
  • pycharm安装教程2021.2_pycharm2021.2安装教程

    pycharm安装教程2021.2_pycharm2021.2安装教程前言Python的编辑器有很多比如VisualStudioCode、SublimeText、Atom、jupyternotebook等等但是功能最强使用最多的还是PyCharm,同时也是我使用的最顺手的一款IDE。它是由JetBrains打造的一款功能强大的PythonIDE。比如代码调试、项目管理、代码跳转、智能提示、单元测试、版本控制等等。具有跨平台性,无论Windows、Mac、Linux都可以使用。一款好的IDE能够帮我们快速入门一个新的语言,对于初次使用PyCharm的同学,可能无

    2022年8月26日
    7
  • oracle数据文件恢复 步骤_oracle数据库文件扩展名

    oracle数据文件恢复 步骤_oracle数据库文件扩展名1、基于linux操作系统文件恢复条件:1、误强制删除linux下的数据文件(rm-rf)。2、未重启数据库或操作系统。3、数据库是归档模式恢复原理:句柄恢复文件–因为我们的操作系统是linux,当数据文件从操作系统级别被rm掉,但之前打开该文件的进程仍然持有相应的文件句柄,所以指向的文件仍然可以读写,并且该文件的文件描述符可以从/proc目录中获得。…

    2022年9月23日
    3
  • ubuntu安装 gcc 5.4.0

    ubuntu安装 gcc 5.4.0ubuntu安装gcc5.4版本Ubuntu高版本如何安装低版本GCC更改默认版本

    2022年7月24日
    22
  • 单片机看门狗工作原理_51单片机看门狗

    单片机看门狗工作原理_51单片机看门狗/*此程序实现单片机”看门狗”WDT的功能*/#include”p18f458.h”unsignedlongi;/*系统初始化子程序*/voidinitial(){TRISD=0X00;/*D口设为输出*/}/*延时子程序*/voidDELAY(){for(i=19999;–i;)continue;}/*主程序*/main(){initial();/*初始化,设定看门狗的相关寄存器*/PO…

    2025年8月13日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号