Question .rdlc Scope problems

GameDudeGK

New member
Joined
Jul 8, 2008
Messages
4
Programming Experience
1-3
Hey guys,

I have a report that needs to be populated by a custom object, and have came across a problem. It is psuedo/simulated below:


Public Class FullName
FirstName as String
LastName as String
end Class


Public Class Dog
Color as string
Names as FullName
end Class

So i can bind dog to report and get color(on the report) with something like:

=Fields!Color.Value

But I also want to get to First name, surprise surprise this didnt work:

=Fields!Names.First.Value



So is this even possible, I've been looking for a while and can't find anything. I Just wanted to ask you guys before I give up and just bind multiple objects to the Report.


Thanks, I appreciate your time.
George
 
So that works fine, I was trying to write a "wrapper function" inside the report code(from the menu Reports>Report Properties>Code). it went something like this

public shared function G(byval fnTemp as FullName) as String
return fnTemp.First
end function

went into the text cell like:

=Code.G(Fields!Names.Value)

This didnt work since the code didnt know what fullname was. So i got the object into a dll, and added it under Reports>Report Properties>References. When runned it said it couldn't find the assembly. I was unable to use my own object :(. So to continue the topic and the thread I was hoping someone would have an Idea of what the problem is (there's little code out there for this).


Thanks
 
Back
Top