随笔分类 -  COM Programming

Use the Field in Word 2003.
摘要:Today, the customer give me a document, he need the special content shown in header. To avoid change my code, I find a method to fix the problem witho... 阅读全文

posted @ 2007-04-28 17:46 广思 阅读(573) 评论(0) 推荐(0)

The common method for filling date into Excel cells from DataSet
摘要:Sometimes, we need to fill the data into Excel cells from DataSet. Now, providing a method to do so. Thanks!--zwwon 阅读全文

posted @ 2007-04-12 18:21 广思 阅读(2085) 评论(0) 推荐(0)

Common way to kill the Excel process
摘要:The code follows: 1 string path = @" D:\\test.xls " ; 2 Excel.ApplicationClassapp = new Microsoft.Office.Interop.Excel.ApplicationClass(); 3 Excel... 阅读全文

posted @ 2007-04-12 16:32 广思 阅读(592) 评论(0) 推荐(0)

Some Useful code for Excel comment
摘要:1 Excel.Rangerange = oWorkSheet.get_Range( "A1 " ,missing); 2 3 Excel.Commentcomment = range.AddComment( "" ); 4 5 comment.Shape.Fill.UserPicture(... 阅读全文

posted @ 2007-04-11 12:34 广思 阅读(1613) 评论(2) 推荐(0)

Excel Comment Programming
摘要:From http://www.contextures.com/xlcomments03.htmlChange the User Name Instead of showing the user name at the start of a comment, you can change to s... 阅读全文

posted @ 2007-04-11 12:31 广思 阅读(1019) 评论(0) 推荐(0)

A soulation for loss the PageSetUp porperty after InsertFile or merge two files in Interp.Word
摘要:After so many times testing and coding, I find the soulation finally. Thanks God!First, the reason of problem occur:Reference : http://word.mvps.org/F... 阅读全文

posted @ 2007-01-05 01:18 广思 阅读(864) 评论(0) 推荐(0)

About the word PrintOut() method
摘要:When we use the word's document.PrintOut() method, if you access the error.word cannot print, the printer is not installedyou cancorrect the machine.c... 阅读全文

posted @ 2006-12-12 16:24 广思 阅读(678) 评论(2) 推荐(0)

edit the office file online
摘要:The javascript code is 1 2 function openOffice(fileurl) 3 {4varopenDocObj=newActiveXObject("SharePoint.OpenDocuments.1");5openDocObj.EditDocum... 阅读全文

posted @ 2006-11-12 13:04 广思 阅读(404) 评论(0) 推荐(0)

Insert a picture into a Excel file
摘要:code to add a picture to Excel Comment 1 Rangerange = oWorkSheet.get_Range( " A1 " ,missing); 2 Excel.Commentcomment = range.AddComment( "" ); 3 com... 阅读全文

posted @ 2006-08-31 17:52 广思 阅读(457) 评论(0) 推荐(0)

System.UnauthorizedAccessException: 拒绝访问 处理办法.
摘要:说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.UnauthorizedAccessException: 拒绝访问。 未授权此 ASP.NET 进程访问所请求的资源。出于安全原因,默认的 A... 阅读全文

posted @ 2006-07-20 10:25 广思 阅读(14670) 评论(1) 推荐(0)

导航