摘要:
使用 microsoft visual c# 进行 microsoft word 2002 和 excel 2002 编程
kerry loynd 和 siew-moi khor
microsoft corporation
2002年10月
适用于:
microsoft® office xp
microsoft visual c#™
摘要:了解 mic......
摘要:
示例 3:打开现有的 word 文档
同 documents.saveas 方法一样,documents.open 方法签名在 office 2000 和 officexp 之间也存在差别,因此新名称包装在 #if 声明中。open 方法和 saveas 方法一样简单,如下所示: object filename = environment.currentdirectory+&quo......
采用反射实现后期绑定操作EXCEL的简单代码(建议加入精华区)
除了采用tblimp导入excel object库实现excel的调用外.
其实还可以采用反射的方法获得属性,并进行后期绑定实现
excel的调用.下面是简单的调用excel程序.
using system;
using system.reflection;
using system.windows;
using system.windows.forms;
class testlatebound:system.windows.forms.form
{
private button mybutton;
public testlatebound()
{
mybutton=new button();
mybutton.text="调用excel";
mybutton.location=new system.drawing.point(100,100);
mybutton.click+=new system.eventhandler(testbound);
this.controls.add(mybutton);
&n...
下一页 摘要:
commandbardocumenter 和 commandbarcontroldocumenter 子例程
在开发命令栏解决方案时,我经常需要获取特定命令栏或命令栏控件的索引、名称或标题。我创建了 commandbardocumenter 和 commandbarcontroldocumenter 子例程,以便将所有命令栏和命令栏控件的公共属性记录在给定的 office 应用程序......