• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 753
  • Last Modified:

wcf return report

I just need a sample written in wcf and will return like List<datalibrary> Or return like list of information like report.

On the consume side in asp.net/c#, I want to see something how to consume the wcf
by using code behind in like while loop or array because the consume sides don't have to any control to bind....

Thanks
0
solution1368
Asked:
solution1368
  • 2
  • 2
1 Solution
 
Miguel OzSoftware EngineerCommented:
Check:
http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=29
this is a simple example to return Employee objects in a generic list
0
 
Kumaraswamy RCommented:
0
 
solution1368Author Commented:
mas_oz2003: Thank, but <list> object only returns count in the example.
I have <list> and need return many rows....

How can I do  that?
0
 
Miguel OzSoftware EngineerCommented:
The example only display the count, but it is returning the the list(lstEmp) as per your request:
 List<Employee> lstEmp = empClient.GetLstEmployees();
lblEmpNo.Text = lstEmp.Count;// thisline displays count but you can use lstEmp  to do whatever you need
0
 
solution1368Author Commented:
I see. lblEmpNo.Text = lstEmp.Count shows only one value and one rows. I need to get many rows like report. How can I do that?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now