Hi All,
I have come across a situation here and need your help.
I have a SSRS Report say Daily_Closed Report. This Reports takes two input Parameters StartDate and EndDate
When i run this Report in Reports GUI and for StartDate and EndDate the calender Pop up appears and can select date and when i say view Report the report runs fine.
Now i am calling this Report in SSIS Script Task.
My Input Dates are in Format StartDate = "8/1/2012 12:00:00 AM" and EndDate = "8/31/2012 11:59:59 PM"
This is my Code for assigning values to Parameters.
myParameters(0) = New frakbporep051.ParameterValue() myParameters(0).Name = "StartDate" myParameters(0).Value = Dts.Variables("myRptStartDate").Value.ToString myParameters(1) = New frakbporep051.ParameterValue() myParameters(1).Name = "EndDate" myParameters(1).Value = Dts.Variables("myRptEndDate").Value.ToString Now when i run the Package i am getting the Below error.
Now when i run the Package i am getting the Below error.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
I think this might be reason i am taking it as String. But i want the Dates in the Same Range i mentioned. Anyhelp is really appreciated,
Thanks in Advance
Thanks & Regards,
Manjunath C Bhat,
http://manjunathcbhat.blogspot.com
http://manjunathcbhat.wordpress.com