2011年7月24日
摘要: 前提:导入COM库:Microsoft word 11.0 Object Library.引用里面就增加了:创建新Wordview plainobjectoMissing=System.Reflection.Missing.Value;Word._ApplicationoWord;Word._DocumentoDoc;oWord=newWord.Application();oWord.Visible=true;oDoc=oWord.Documents.Add(refoMissing,refoMissing,refoMissing,refoMissing);打开文档:view plainobje 阅读全文
posted @ 2011-07-24 22:23 WPF之家 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 一、在学习WPF的样式之前,先总结下静态资源的使用方法:首先,将.NET名称空间系统映射到XAML名称空间前缀<Window xmlns:sys="clr-namespace:System;assembly=mscorlib">。然后,在窗口级别上定义相关的资源,也可以在Grid面板或StackPanel面板上设定资源。<Window.Resources> <FontFamily x:Key = "ButtonFontFamily">Times New Roman</FontFamily> <sys: 阅读全文
posted @ 2011-07-24 01:33 WPF之家 阅读(866) 评论(1) 推荐(3) 编辑