随笔分类 - Asp.net 开发
摘要:今天接到一个任务解决一项技术问题.客户想在公文审核过程中对公文中的word文档盖章.变态的是要求在word文档的所有页面的右下角盖章,而且图章要浮动在文字上方.经过一下午的折腾把它搞定了....关键代码如下:object pos = p.Rectangles[1].Range.End-1;object rng = oWordApplic.ActiveDocument.Range(ref pos,ref pos);//插入图片并选中oWordApplic.Selection.InlineShapes.AddPicture(imgFile,ref LinkToFile,ref SaveWithDo
阅读全文
摘要:翻译 一些很酷的.Net技巧 原作出处:http://www.codeproject.com/useritems/tips.asp?df=100 一..Net Framework 1. 如何获得系统文件夹 使用System.Envioment类的GetFolderPath方法;例如: Environment.GetFolderPath( Environment.SpecialFolder.Per...
阅读全文

浙公网安备 33010602011771号