C#操作Word完全功略!如何:将文档发送到打印机Word对象模型参考(VisualStudioToolsforOffice)Document.PrintOut方法贴一段别人的代码CodepublicclassBiultReportForm{//////word应用对象///privateMicrosoft.Office.Interop.Word.Application_wordApplication;///
系统 2019-08-12 09:27:19 2682
最近一段时间一直在总结过去一年中的经验教训,突然发现还没毕业那会做的项目:一平台,语言是c#,数据库用MYSQL,所以需要写一个类似于SQLHelper的类,虽然不再使用了,拿出来晒晒,说不定哪天会有人需要,也可以参考下。ViewCode1/*----------------------------------------------------------------2//FileName:MYSQLHelper.cs3//FileDescription
系统 2019-08-12 01:54:56 2681
在项目中添加Microsoft.Office.Interop.Word.dll引用CodepublicclassWordAPI{privateobject_template;privateobject_newWord;privateMicrosoft.Office.Interop.Word.ApplicationwordApp;privateMicrosoft.Office.Interop.Word.Document_wordDocument;privat
系统 2019-08-12 09:27:02 2675
DateTimedt=DateTime.Now;stringstr=dt.ToString("yyyy-MM-dd");//2013-09-07str=dt.ToString();//2013/09/0714:25:24str=dt.ToLocalTime().ToString();//2013/09/0714:25:24str=dt.ToLongDateString();//2013年9月7日str=dt.ToShortDateString();//20
系统 2019-08-12 01:54:52 2675
系统 2019-08-12 09:27:01 2651