简体   繁体   English

SSRS日期参数验证

[英]SSRS Date Parameter Validation

image description here: 图片说明在这里: 图片1

while am entering alphabates or numbers in dateparameter textbox in report then click viewreport. 在报表的dateparameter文本框中输入字母或数字时,然后单击viewreport。 it shows an error occured processing report the value provided for report parameter fromdate is not valid types. 它显示处理报告时发生错误,为报告参数fromdate提供的值是无效类型。 instead of above error i want to show my own label as please enter valid date like format MM/DD/yyyy 而不是以上错误,我想显示我自己的标签,因为请输入有效日期,例如格式MM / DD / yyyy

You can do so but it is not recommended as you are touching web.config file of reporting extensions 您可以这样做,但不建议这样做,因为您正在触摸报告扩展名的web.config文件

1-Browse to Report Manager folder. 1-浏览到报表管理器文件夹。 For SSRS 2005, its typical location is DRIVE:\\Program Files\\Microsoft SQL Server\\MSSQL.x\\Reporting Services\\ReportManager, where x is the instance; 对于SSRS 2005,其典型位置是DRIVE:\\ Program Files \\ Microsoft SQL Server \\ MSSQL.x \\ Reporting Services \\ ReportManager,其中x是实例; for SSRS 2008 and SSRS 2008 R2, DRIVE:\\Program Files\\Microsoft SQL Server\\MSRS10.SSRS\\Reporting Services\\ReportManager. 对于SSRS 2008和SSRS 2008 R2,请选择DRIVE:\\ Program Files \\ Microsoft SQL Server \\ MSRS10.SSRS \\ Reporting Services \\ ReportManager。

2-Make a copy of the existing Web.config as backup 2-将现有Web.config的副本作为备份

3-Open Web.config in a text editor, or in Visual Studio to get Intellisense support 3-在文本编辑器或Visual Studio中打开Web.config以获得Intellisense支持

4-Under the section, locate the section 4-在该部分下,找到该部分

5-Modify the existing section, or insert a new one, with the appropriate settings 5-使用适当的设置修改现有部分,或插入新部分

6-Restart the Report Server Below Link will help you. 6-重新启动链接下方的报表服务器将为您提供帮助。 Let us know this help you or not. 让我们知道这对您有没有帮助。

http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/87989623-068f-4c45-84e9-d151635ac1b3/ http://social.msdn.microsoft.com/Forums/zh-CN/sqlreportingservices/thread/87989623-068f-4c45-84e9-d151635ac1b3/

http://www.simple-talk.com/sql/t-sql-programming/sql-server-error-handling-workbench/ http://www.simple-talk.com/sql/t-sql-programming/sql-server-error-handling-workbench/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM