C 封裝Word常用操作類

2021-05-25 06:45:53 字數 921 閱讀 1081

object nullobj = system.reflection.missing.value;

microsoft.office.interop.word.document doc = word.documents.open(

ref filename, ref nullobj, ref nullobj,

ref nullobj, ref nullobj, ref nullobj,

ref nullobj, ref nullobj, ref nullobj,

ref nullobj, ref nullobj, ref nullobj,ref nullobj,ref nullobj,ref nullobj,ref nullobj);

object copies = "1";

object pages = "";

object range = wdprintoutrange.wdprintalldocument;

object items = wdprintoutitem.wdprintdocumentcontent;

object pagetype = wdprintoutpages.wdprintallpages;

object otrue = true;

object ofalse = false;

doc.printout(

ref otrue, ref ofalse, ref range, ref missing, ref missing, ref missing,

ref items, ref copies, ref pages, ref pagetype, ref ofalse, ref otrue,

ref missing, ref ofalse, ref missing, ref missing, ref missing, ref missing);

c 封裝Dapper操作類

using using using system.collections.generic using system.configuration using system.data using system.data.sqlclient using system.linq using system.t...

C 工具類 FTP操作封裝類FTPHelper

c ftphelper實現ftp伺服器檔案讀寫操作,支援ssl協議 ftp伺服器為 serv u10.0 using system using system.collections.generic using system.io using system.linq using system.net ...

redis操作封裝類

class redis 設定redis配置 執行前,配置會被重置為 host port 6379 access public param array conf 配置檔案集合,包含引數 string host 伺服器位址 string port 伺服器端口 return void public fun...