摘要: 数据库中有如下表,打印表的所有信息1、新建一个Windows窗体应用程序2、添加新项——数据集向数据集中添加datatable,列名及数据类型参照上表3、添加报表,设计报表如下图4、在winform窗体中拖入ReportViewer报表。5、winform窗体后台代码private void Form2_Load(object sender, EventArgs e) { Print(); } public void Print() { TestDBEntities1 dbEntities = new TestDBEntities1(); ... 阅读全文
posted @ 2013-04-26 16:58 清晓zzz 阅读(883) 评论(1) 推荐(0) 编辑
摘要: 一、创建时,WCF Service中HttpContext.Current为null的解决办法1. 在hosting WCF的web.config中加入:<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/></system.serviceModel>2. 在Service的类定义上加上下面Attribute:[AspNetCompatibilityrequirements(RequirementsMode = AspNetC 阅读全文
posted @ 2013-04-26 16:55 清晓zzz 阅读(1264) 评论(0) 推荐(0) 编辑