上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: Dialog newDialog = wordApplication.Dialogs[WdWordDialog.wdDialogContentControlProperties]; newDialog.Show(); 如果没有ContentControl被选中,上面代码会报错... 阅读全文
posted @ 2012-04-16 13:10 许阳 无锡 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 添加前表格:运行后结果:实现代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;using Do... 阅读全文
posted @ 2012-04-13 13:10 许阳 无锡 阅读(278) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Office.Tools.Ribbon;using PowerPoint = Microsoft.Off... 阅读全文
posted @ 2012-04-11 15:49 许阳 无锡 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 在Open Xml中Excel单元格的位置时在CellReference中确定的其格式为[字母][数字]。其总字母标示列的位置,数字表示行的位置。在实际操作过程中我们最初取得的都是数字的行列号。所以必须知道如何在数字的行列号与CellReference格式的行列号之间是如何转化的。这个例子通过正则表... 阅读全文
posted @ 2012-04-11 10:45 许阳 无锡 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 以下示例用来展示在放映幻灯片的过程中动态插入内容。Public Class ThisAddIn Private WithEvents PPApp As PowerPoint.Application Private Sub ThisAddIn_Startup() Handles Me.St... 阅读全文
posted @ 2012-04-11 10:32 许阳 无锡 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 当你的Excel文档中嵌入Winform控件后这些控件会浮于你的Worksheet的顶层。当你使用批注时你会发现你的批注总是被Winform控件挡住了。为了避免这种情况,我建议尽可能使用VBA控件 阅读全文
posted @ 2012-03-30 10:55 许阳 无锡 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 在一般的application中我们是这样读取configuration文件的Dim DBconfig As System.Configuration.Configuration = System.Configuration.ConfigurationManager.OpenExeConfigura... 阅读全文
posted @ 2012-03-26 13:48 许阳 无锡 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 在CSV文件中我们以“,”作为默认分隔符。在之际操作过程中也许我们会改变默认分隔符,例如使用“;”。如果需要改变分隔符我们就需要使用“Sep”命令。在网上有朋友问为什么我用了Sep命令后反而Excel不能识别CSV格式了呢?那是因为你的Sep和CSV文件的数据混在同一行中了。如果你使用Sep命令,请... 阅读全文
posted @ 2012-03-26 12:52 许阳 无锡 阅读(382) 评论(0) 推荐(0) 编辑
摘要: Office Addin 要被加载就必须在注册表里写入特定的键值。在这里我把可能的键列一下:[32-bit platform, 32-bit office]/[64-bit platform, 64-bit office]: HKEY_CURRENT_USER\Software\Microsoft\... 阅读全文
posted @ 2012-03-19 12:27 许阳 无锡 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 搜索body和Subject:Outlook.Items items = Inbox.Items.Restrict("@SQL=\"urn:schemas:httpmail:textdescription\" like '%" + [keyworkds] + "'");只搜索Subject:Outl... 阅读全文
posted @ 2012-03-16 12:07 许阳 无锡 阅读(248) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页