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