- 博客(9)
- 资源 (38)
- 收藏
- 关注
原创 C# 在文档光标处插入文字后光标移至被插入文字后
实现环境:Visual Studio 2010, VSTO 4.0, Office 2010.using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Office.Tools.Ribbon;using Word = Microsoft.Offic
2011-11-30 16:47:20 2794
原创 Outlook 2010 从磁盘读取一个HTML文件作为Email的Body
Sub ReadHTMLToMailBody() Dim objMailItem As Outlook.MailItem Dim objFileSystem As Object Dim objFileInfo As Object Dim objStream As Object Dim strSourceCode As String Set
2011-11-30 14:21:15 2389
原创 Outlook 2010使用VBA将一个MAPIFolder目录下的MailItem移到它的一个子目录下
Sub test() Dim objSession As Outlook.NameSpace Dim objFolder1 As Outlook.MAPIFolder Dim objFolder2 As Outlook.MAPIFolder Dim objItem As Outlook.MailItem Set objSession =
2011-11-29 16:57:13 1686
原创 Outlook 2010遍历会话相关的所用邮件
这个例子使用C#,Visual Studio 2010开发,是基于Outlook 2010的应用。当你选中一个邮件然后在Ribbon上点击按钮后所用与这个会话相关的邮件都会被打开。主要代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Micro
2011-11-28 16:49:51 1475
原创 如何用OpenXml判断一个Office文档是否用密码加密过
实际上我们是不能用OpenXml SDK去判断一个Office文档是否用密码加密过的。我们可以试着把文档的扩展名改为"zip"然后解压缩它。你会发现解压缩出来的内容与一个正常文档解压缩出来的内容大相径庭。或许这也是我们判断文档是否被加密的最好依据。
2011-11-24 14:45:57 1697
原创 隐藏Visio 2010的Quick Access Toolbar
我的做法是建立一个Visio 2010 add-in 然后用Ribbon Xml来隐藏Quick Access Toolbar(QAT).ThisAddIn.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;u
2011-11-23 13:35:10 1233
原创 Outlook 2010 用代码在Outlook explorer中选中一个邮件
这个代码只能在Outlook 2010中使用using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Office.Tools.Ribbon;using Outlook = Microsoft.Office.Interop.Outlook
2011-11-22 16:36:02 836
原创 OpenXml SDK 2.0 创建Word 2010文档(不带[Compatibility])最简代码
using (WordprocessingDocument objWordDocument = WordprocessingDocument.Create(@"C:\******.docx", WordprocessingDocumentType.Document)) { MainDocumentPart objMainDocumentPar
2011-11-21 16:41:23 1304
原创 OpenXml SDK 2.0 创建Word文档——最简化的版本
using (WordprocessingDocument objWordDocument = WordprocessingDocument.Create(@"C:\********.docx", WordprocessingDocumentType.Document)) { MainDocumentPart objMainDocumentP
2011-11-21 16:30:13 1665 1
用OpenXml向Word文档尾部添加text content控件
2011-12-28
最简单的Excel文档(OpenXml Format)
2011-12-15
Outlook的Globalization和RibbonX
2011-12-15
RibbonX动态生成ComboBox,DropDown的Item
2011-12-15
OpenXmlSDK2.0向PowerPoint2010中插入新幻灯片
2011-12-07
Word Document-Level 应用:在光标处插入文字后光标后移
2011-11-30
Outlook打开会话相关的所有邮件
2011-11-28
Openxml 修改Excel指定单元格
2012-05-24
Outlook Windows Forum Automation
2012-03-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人