1
Answer

Detais to Bulding Reports from object Collection using ReportViewer

piero piero

piero piero

13y
1.4k
1
In this url

http://www.c-sharpcorner.com/UploadFile/mahesh/ReportViewerObject04172007111636AM/ReportViewerObject.aspx

t
here is a good tutorial to Bulding Reports from object Collection using ReportViewer.

My ask is:

I suppose that in the Class Employee there is an attribute object for example City.


class City
{
  private string _city;
 
 public City(string c)
 { _city = c; }
 public string city { get, set }

}

So
m_employees.Add(new Employee("Mahesh Chand", "112 New Road, Chadds Ford, PA", "123-21-1212", 30, new City("London")));


How can i visualize "London" in a textbox into the table ?

perhaps =field!City.Value.city ?
            =field!city.Value ?

escapes this step. Who is kind enought to explaind the logic ? thanks.


Important:

I use the reports rdlc (no Crystal Report) in Visual studio 2008
Answers (1)
0
Sam Hobbs
NA 28.7k 1.3m 13y
I am sorry but I do not understand your question. I can say however that the syntax "field!city.Value" is not valid for C#. Other than that, I am not sure what you are asking. Are you asking how to add a city to the table? What table? Note that there is not a table in that article; the article shows use of a collection. You need to understand the C# language to understand what a collection is. The best answer to this question is for you to learn more about C#. You will definitley get more help here if you first learn C# better. I think you might get help for this specific question if you could explain the question better, but I am not sure what would help.