Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Sending NULL to reportViwer

Author  Topic 

roy mm
Yak Posting Veteran

62 Posts

Posted - 2008-03-27 : 09:29:34
Hello.
I have a report that can get null as a value for one of his parameters.

I'm running this report in a reportViewer (WinForm application).

How can I send this report the value NULL?

I tried using:
Microsoft.reporting.winforms.reportParameter("p_param",null)

But I got an error that the call is ambiguous becouse it have two overload:
1) Microsoft.reporting.winforms.reportParameter(string,string)
2) Microsoft.reporting.winforms.reportParameter(string,string[])

So how can I send the value NULL?

Thanks.

roy mm
Yak Posting Veteran

62 Posts

Posted - 2008-03-27 : 10:02:11
Hi,



I found the solution, My mistake for not noticing it.

The function can get only the name of the parameter with a value and then it send Nuul automaticly.



Thanks.
Go to Top of Page
   

- Advertisement -