Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 15th, 2007, 04:31 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with dateTime picker

Hello.
I've just created a new report and I added a prameter of type "DateTime".
I didn't even used it in the query.
Whan I preview the report I have the small calendar Icon.
after I pick a time from the picker And press "View Report"
I get the error:
"the value provided for the report parameter P1 is not valid for its type"

I'm using RS 2005.

Any body know whats the problem?

Thanks in advance,
Roy.


Reply With Quote
  #2 (permalink)  
Old February 15th, 2007, 05:32 AM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

    Public Sub DailyReport(ByVal recdate As Date)
        reportViewer.ServerReport.ReportServerUrl = New System.Uri("http://localhost/ReportServer/")
        reportViewer.ServerReport.ReportPath = "/TA_Report/DailyTA"

        Dim params(0) As Microsoft.Reporting.WinForms.ReportParameter
        params(0) = New Microsoft.Reporting.WinForms.ReportParameter("RecD ate", recdate)

        reportViewer.ServerReport.SetParameters(params)

        Me.reportViewer.RefreshReport()
    End Sub

try something similar to this one but changes some value according to your variables.
"RecDate" is parameter name that i declare in report designer
recdate is Date type that i pass to the parameter.

Reply With Quote
  #3 (permalink)  
Old March 14th, 2007, 11:34 AM
Registered User
 
Join Date: Mar 2007
Location: , , Ireland.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why would you need a report parameter if you do not have a parameter in your SQL query.
Try putting a date parameter in the query. Seems like RS does not know what to do with the one at report level.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DateTime Problem kwilliams ASP.NET 2.0 Professional 1 March 12th, 2008 01:36 PM
DateTime Picker sconineuk VB.NET 2002/2003 Basics 2 March 9th, 2006 01:09 PM
DateTime problem acko Pro VB Databases 7 October 31st, 2004 05:53 AM
Color picker problem abq23 Dreamweaver (all versions) 7 June 2nd, 2004 12:11 PM



All times are GMT -4. The time now is 11:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.