- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 C# EXCEl中插入图片
using Excel = Microsoft.Office.Interop.Excel;方法1、/// /// 插入图片 /// /// 工作表 /// 图片的绝对路径 /// 单元格行号 /// 单元格列号 /// public void AddImage(Excel.Worksheet sheet, string imageFilePath, int rowNumber, int co
2010-07-06 12:43:00 2738
原创 处理过程中页面遮挡的技术
在程序中定义div,用div进行遮挡。在项目中使用代码:在处理过程开始的时候调用以下代码进行遮挡:var obj = document.getEl
2010-07-05 17:19:00 468
原创 C# 字符串截取(包括汉字)
<br />private void GetSubString()<br /> {<br /> //截取的长度<br /> int count = 0;<br /> if (!string.IsNullOrEmpty(txtCount.Text))<br /> {<br /> count = Convert.ToInt32(txtCount.Text);<br />
2010-07-01 17:25:00 1635
原创 C# log4net配置
<br />1、xml的编写(log4net配置)<br /><?xml version="1.0" encoding="utf-8" ?><br /><configuration><br /> <configSections><br /> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /><br /> </configSections><br /> <br />
2010-07-01 17:00:00 1534
原创 C# 关闭EXCEL进程
<br />[DllImport("User32.dll", CharSet = CharSet.Auto)]<br /> public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int ID);<br /> private void Kill(Application theApp)<br /> {<br /> if (theApp == null)<br />
2010-06-29 11:39:00 497
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人