本文介绍了如何将值从表单传递给crystal报表作为参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我曾尝试过以下代码,但它无法正常工作。 代码中我应该知道什么? form1上有crystalreportviewer1的代码。 CrystalReportViewer1.Refresh() Dim paramfields As ParameterFields = Me.CrystalReportViewer1.ParameterFieldInfo Dim param As New ParameterField param.Name =result Dim param_value As New ParameterDiscreteValue param_value.Value = LoginForm.UsernameTextBox .Text param.CurrentValues.Add(param_value) paramfields.Add(param) CrystalReportViewer1.Refresh()解决方案 I had tried the following code but its not working.what should i have to chnges in the code?code on the form1 that have crystalreportviewer1.CrystalReportViewer1.Refresh() Dim paramfields As ParameterFields = Me.CrystalReportViewer1.ParameterFieldInfo Dim param As New ParameterField param.Name = "result" Dim param_value As New ParameterDiscreteValue param_value.Value = LoginForm.UsernameTextBox.Text param.CurrentValues.Add(param_value) paramfields.Add(param) CrystalReportViewer1.Refresh() 解决方案 这篇关于如何将值从表单传递给crystal报表作为参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-21 00:47