原创 C#反射技術實現代碼編譯

using System; using System.Data; using System.Configuration; using System.Text; using System.CodeDom.Compiler; using Mi

原创 C# 操作word 類

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using

原创 VC UI界面庫大集合

VC UI界面庫大集合[轉] 自:http://hi.baidu.com/zgcat/blog/item/c6f997006c37b91c728b65ad.html VC UI界面庫 http://cid-47027e68f36cbaf

原创 EXCEL操作類

using System; using System.Collections.Generic; using System.Text; using Word = Microsoft.Office.Interop.Word; using Ex

原创 C# 獲取文件名及擴展名

string aFirstName = aFile.Substring(aFile.LastIndexOf("\\") + 1, (aFile.LastIndexOf(".") - aFile.LastIndexOf("\\") - 1)

原创 C# 操作word類

1.using System; 2.using System.Collections.Generic; 3.using System.Text; 4.using Microsoft.Office.Interop.Word

原创 C# 讀取數據庫word 和寫入數據庫word文件

要實現在Sql Server中實現將文件讀寫Word文件,需要在要存取的表中添加Image類型的列,示例表結構爲: CREATE TABLE CONTRACTS ( ID VARCHAR (50), CONTRACT_F

原创 關於讀取和寫入word2003的書籤內容

目前的項目又要對word2003進行編程,主要功能是讀取和插入標籤的數據.具體代碼如下: (打開word文檔與網上雷同) 引用部分: using System;using System.Data;using System.Configur

原创 C#比較兩個word文檔的內容

 本文歡迎轉載,但必須在文章顯眼處保留原文地址  http://www.cnblogs.com/Ss_Andy/archive/2010/11/02/1866762.html        最近在開發的項目中,又遇到一個和word有關的

原创 C#中virtual,override,new的區別是什麼

virtual   用於父類中,聲明某方法可以重寫,該方法不能是static; override(覆蓋繼承)   用於子類中,重寫父類中用virtual/override/abstract關鍵字聲明的方法; new(隱藏繼承)   用於子

原创 C#處理word事件

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 C# 讀取word文檔數據粘貼全部

 Word.ApplicationClass wordApp=new ApplicationClass(); object file=path; object nullobj=System.Reflection.Missing.V

原创 dsoframer用法

dsoframer是微軟提供一款開源的基於web的office ActiveX控件,國內有達人在源碼的基礎上做了很多修改,增強了控件的功能。其實基於

原创 C# 釋放excel 殺掉excel 而其它Excel進程則相安無事

    最近,做了幾個月的WinForm,接觸了一些進程、句柄方面的知識。於是試着解決一下,沒想到成功了,創建的Excel進程被成功Kill掉了,而其它Excel進程則相安無事。     關鍵代碼:     查看源代碼打印?public

原创 描述 private、protected、internal和public修飾符的

描述 private、protected、internal和public修飾符的 理解訪問權限存在的意義,各種訪問權限的作用,在代碼中靈活應用訪問權限。 【出現頻率】 ★★★☆☆ 【解答】 1.private修飾 private修飾符用於