上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using DocumentFormat.OpenXml.Packaging;us... 阅读全文
posted @ 2012-05-18 13:22 许阳 无锡 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 在实际工作中我注意到在Office 2007中,当RibbonXml装载完成以后私有属性ribbon仍然是存在的,而在Office 2010中ribbon在装载完成以后就被销毁了。 阅读全文
posted @ 2012-05-16 14:16 许阳 无锡 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Sub test() With ActivePresentation.Slides(1) .FollowMasterBackground = False .Background.Fill.UserPicture "C:\*****\abc.PNG" E... 阅读全文
posted @ 2012-05-15 15:14 许阳 无锡 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 在这个示例中指定"A","B","C"为需要读取的列。using System.Windows.Forms;using DocumentFormat.OpenXml.Packaging;using DocumentFormat.OpenXml.Spreadsheet;using System.Tex... 阅读全文
posted @ 2012-05-15 12:53 许阳 无锡 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 引发原因:动态链接库缺失。参考文献:http://www.registryquick.net/runtime/Fix-Runtime-error-426-How-to-Fix-Runtime-error-426-29193.html 阅读全文
posted @ 2012-05-11 14:59 许阳 无锡 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 如题。微软官方KB: http://support.microsoft.com/kb/211485 阅读全文
posted @ 2012-05-11 14:49 许阳 无锡 阅读(106) 评论(0) 推荐(0) 编辑
摘要: ReleaseComObject是托管代码中用来通知COM组件销毁COM对象释放内存的显式方法。在.NET程序中引用的COM对象在一般情况下在程序结束时会由GC回收并销毁。而ReleaseComObject可以在程序中通知GC处理销毁COM对象的工作。以我的愚见在一般在VSTO程序中没有必要使用这个... 阅读全文
posted @ 2012-04-26 15:55 许阳 无锡 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Dim reportWebBrowser As New WebBrowser reportWebBrowser.CreateControl() reportWebBrowser.DocumentText = sbHTMLDoc.ToString While repor... 阅读全文
posted @ 2012-04-24 14:48 许阳 无锡 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 在VBA中颜色是以OleColor的形式存在的,如果想要RGB的值需要经过一定的装换。代码如下:Sub ColorAlert(Color As Variant) Dim R%, G%, B% R = Color Mod 256 G = Color \ 256 Mod 256... 阅读全文
posted @ 2012-04-24 13:16 许阳 无锡 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 在VBA中必须通过调用Win32 API来实现Ini文件读写。Option Explicit 'read Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStrin... 阅读全文
posted @ 2012-04-23 11:12 许阳 无锡 阅读(457) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页