简体   繁体   English

创建显示与VS2010记录详细信息的报告

[英]Creating a report showing record details with VS2010

Is there a way I can design a report (using VS2010, ASP.Net), which will list customers in the following format: 有没有一种方法可以设计报告(使用VS2010,ASP.Net),该报告将以以下格式列出客户:

Id: 1 ID:1
Name: Joe Bloggs 姓名:乔·博格斯
Address:Address 1 地址:地址1
City
ZIP 压缩
State1 状态1

Id: 2 ID:2
Name: Steve Brown 姓名:史蒂夫·布朗
Address:Address 2 地址:地址2
City2 城市2
ZIP2 ZIP2
State2 状态2
... ...

Can I have such a format? 我可以有这种格式吗?

Yes, use List to iterate through each record and add the item template for each employee. 是的,使用List来遍历每条记录并为每位员工添加项目模板。 In your case you should group your list by the EmplyeeID field, that will make each ListItem show a single record of an Employee. 在您的情况下,您应该按EmplyeeID字段对列表进行分组,这将使每个ListItem显示一个Employee的单个记录。

Inside the List place: 5 labels for each field, eg ID, Name etc.. Next to each label place a text box and attach it to the DataSet fields provided by the list element. 在列表位置内:每个字段5个标签,例如ID,名称等。在每个标签旁边放置一个文本框,并将其附加到列表元素提供的DataSet字段。

here is an example for you: Using Lists - MSDN 这是为您提供的示例: 使用列表-MSDN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM