摘要:
编写代码的过程中,通过下面的代码打开并控制Word文件 Try With myProcess .StartInfo.FileName = str_模板文件 .StartInfo.CreateNoWindow = True .Start() End With Catch ex As Exception 阅读全文
摘要:
使用VSTO编写Excel的加载项时,可动态地增加用户窗体,也可调用使用手工方法添加的Windows窗体。Windows窗体其实是一个“类”,所以,调用手工添加的已经存在的Windows窗体时,使用这样的代码: Dim frm_演示 as 手工窗体 '这个手工窗体是通过“项目-添加窗体(Window 阅读全文
摘要:
Select方法返回一个DataRow的数组。MSDN中的例子: Private Sub GetRowsByFilter() Dim table As DataTable = DataSet1.Tables("Orders") ' Presuming the DataTable has a colu 阅读全文