none
Unable to report two object of same type RRS feed

  • Question

  •  

    I'm trying to use ReportCreator and ReportViewer in Visual Studio 2008.

    I want to create rapport with fields of my own object. Some of this fields are in my own type.

    In one object I have two list of same type and I can't print the two list in two array.

    How can I create a secondary binding source?


    Here is the scheme:

      TypeMain MyMainObject

           TypeOne ListOne
           TypeOne ListTwo

           TypeTwo MyClient
                string LastName
                string FirstName


    I create a list area with ReportCreator, a binding source of TypeMain in ReportViewer.

    In report creator I can put label with =Fields!LastName.Value but I never see anything as name in ReportViewer (always empty)

    I create a binding source of TypeOne, put the datasource property as ListOne, but how can I do to have list two in a secondary array ?

    Where I'm wrong? Could you help me please?

    Tuesday, July 1, 2008 8:02 AM