随笔分类 -  WinFom Project

摘要:这篇是在C#中注册COM+组建测试用例.....项目创建:1.添加引用System.EnterpriseServices,并且using System.EnterpriseServices; 2.Public class public class ComSample:ServicedComponent //类要从ServicedComponent继承在类的前面要添加 [Transaction(TransactionOption.Required)],以启用事务步骤1:(实例:如下图1)(1)给类一个强名称,创建强名称,可以使用 sn 工具。 在 Visual Studio .NET 命令提示符 阅读全文
posted @ 2011-03-27 22:58 AriLee 阅读(9527) 评论(0) 推荐(0)
摘要:1 最近在做一个交叉表的数据批量导入,采用过很多方式一直没有特别理想的解决方案,昨天终于解决了,以下是测试记录: 2 3 OpenFileDialog openfile = new OpenFileDialog(); 4 openfile.Filter = "工作薄(*.xlsx)|*.xlsx|所有文件(*.*)|*.*"; 5 if (openfile.FilterIndex == 1 && openfile.ShowDialog() == DialogResult.OK) 6 { 7 string path = openfile.FileName; 8 阅读全文
posted @ 2011-02-27 22:52 AriLee 阅读(1243) 评论(0) 推荐(0)