日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
C#操作Word之創(chuàng)建、打開Word

C#操作Word之創(chuàng)建、打開Word前提:

網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)!專注于網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、微信小程序定制開發(fā)、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了包頭免費建站歡迎大家使用!

導(dǎo)入COM庫:Microsoft word 11.0 Object Library.

引用里面就增加了:

C#操作Word之創(chuàng)建、打開Word之創(chuàng)建新Word

 
 
 
  1. object oMissing = System.Reflection.Missing.Value;  
  2.  
  3. Word._Application oWord;  
  4.  
  5. Word._Document oDoc;  
  6.  
  7. oWord = new Word.Application();  
  8.  
  9. oWord.Visible = true;  
  10.  
  11. oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,  
  12.  
  13. ref oMissing, ref oMissing); 

C#操作Word之創(chuàng)建、打開Word之打開文檔:

 
 
 
  1. object oMissing = System.Reflection.Missing.Value;  
  2.  
  3. Word._Application oWord;  
  4.  
  5. Word._Document oDoc;  
  6.  
  7. oWord = new Word.Application();  
  8.  
  9. oWord.Visible = true;  
  10.  
  11. object fileName = @"E:CCCXCXXTestDoc.doc";  
  12.  
  13. oDoc = oWord.Documents.Open(ref fileName,  
  14.  
  15. ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,  
  16.  
  17. ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,  
  18.  
  19. ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing); 

C#操作Word之創(chuàng)建、打開Word的操作就向你介紹到這里,希望對你了解和學(xué)習(xí)C#操作Word之創(chuàng)建、打開Word有所幫助。


新聞名稱:C#操作Word之創(chuàng)建、打開Word
分享URL:http://www.5511xx.com/article/dhcjoie.html