Showing posts with label sub. Show all posts
Showing posts with label sub. Show all posts

Friday, March 9, 2012

Problem when Exporting a Report which have subreports in it

Hello
i am facing a problem when i render a report in Excel which have a subreport
in it.
it give me error "Sub Report within Table/Matrix are ignored".
how can i solve this issue plz help.
ThanksHi Malik,
Don't use table objects. Instead, place the sub-report within a listbox
object.
Aardvark
"Malik Asif Joyia" wrote:
> Hello
> i am facing a problem when i render a report in Excel which have a subreport
> in it.
> it give me error "Sub Report within Table/Matrix are ignored".
> how can i solve this issue plz help.
> Thanks
>
>

Wednesday, March 7, 2012

Problem w/ Script Task accessing Directory Services

Using the example from SS online books:

The code is this:

Public Sub Main()

Dim directory As DirectoryServices.DirectorySearcher

Dim result As DirectoryServices.SearchResult

Dim email As String

email = Dts.Variables("email").Value.ToString

Try

directory = New _

DirectoryServices.DirectorySearcher("(mail=" & email & ")")

result = directory.FindOne

Dts.Variables("name").Value = _

result.Properties("name").ToString()

Dts.TaskResult = Dts.Results.Success

Catch ex As Exception

Dts.Events.FireError(0, _

"Script Task Example", _

ex.Message & ControlChars.CrLf & ex.StackTrace, _

String.Empty, 0)

Dts.TaskResult = Dts.Results.Failure

End Try

Dts.TaskResult = Dts.Results.Success

End Sub

End Class

My problem is I'm not getting a value for 'Name' instead when I display in a dataflow task (using dataviewer)following the script task the value of Name = 'System.DirectoryServices.ResultPropertyValueCollection'

It's seems like it is telling me its property not the value. I'm not a VB/.Net developer so I'm just guessing as to what the value means.

Any help would be appreciated.

thanks

I'm nod directory services expert, but from MSDN, the indexer of ResultPropertyCollection is declared as

Public ReadOnly Default Property Item ( _ name As String _ ) As ResultPropertyValueCollection

I.e. result.Properties("name") returns a collecions of properties, not the value.

|||

Found additional examples of how to do this and got it working

thanks