错误 - 未定义“ReportParameter”类型 [英] Error - type 'ReportParameter' is not defined

查看:150
本文介绍了错误 - 未定义“ReportParameter”类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在报告中添加参数。但它显示错误类型报告参数未定义。我需要进口一些东西吗?我正在使用VS 2005 Standard Edition及其Vb本地报告。


Dim params As ReportParameter
params =
ReportParameter( " DocDate" ,docdate)

请帮助...
谢谢......

解决方案

您需要将Microsoft.Reporting.WinForms或Microsoft.Reporting.WebForms导入该代码文件,具体取决于此类型的应用程序。

< tbody>
Imports Microsoft.Reporting.WinForms

Hi,

I am trying to add a parameter to my report. But it is showing a error type Report Parameter is not defined. DO I need to import something ? I am using VS 2005 Standard Edition and its a Vb local report.

Dim params As ReportParameter
params =
New ReportParameter("DocDate", docdate)

Kindly help...
Thanks...

解决方案

You will need to import into that code file either Microsoft.Reporting.WinForms or Microsoft.Reporting.WebForms depending on which type of app this is.

Imports Microsoft.Reporting.WinForms 


这篇关于错误 - 未定义“ReportParameter”类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆