已閱讀5頁(yè),還剩21頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Office在線編輯功能實(shí)現(xiàn)1 DSOFramer控件說(shuō)明DSOFramer.ocx控件是微軟提供一款開(kāi)源的用于在線編輯、調(diào)用Word、 Excel 、PowerPoint等的ActiveX控件。國(guó)內(nèi)很多著名的OA中間件,電子印章,簽名留痕等大多數(shù)是依此改進(jìn)而來(lái)的。只要本地安裝注冊(cè)DSOFramer控件,并且安裝了OFFICE軟件,即可實(shí)現(xiàn)其強(qiáng)大的在線編輯功能。1.1 DSOFramer控件接口在jsp頁(yè)面中添加如下腳本代碼,實(shí)現(xiàn)控件的引用:1.1.1 新建文檔/新建Word/document.all.FramerControl1.CreateNew(Word.Document);/新建Exceldocument.all.FramerControl1.CreateNew(Excel.Sheet);1.1.2 打開(kāi)文檔/打開(kāi)制定的本地文件document.all.FramerControl1.Open(C:TestBook.xls);/制定用Word來(lái)打開(kāi)c:plain.txt文件document.all.FramerControl1.Open(C:Plain.txt,false, Word.Document);/打開(kāi)服務(wù)器的文件 document.all.FramerControl1.Open https:/secureserver/test/mytest.asp?id=123,true, Excel.Sheet, MyUserAccount, MyPassword);/打開(kāi)服務(wù)器的文件 document.all.FramerControl1.Open(http:/localhost/1.doc, true);1.1.3 保存文檔*/到本地document.all.FramerControl1.Save(c:1.doc,true);/服務(wù)器 /*增加Http協(xié)議Post上傳接口,可以Post一個(gè)動(dòng)態(tài)頁(yè)面(jsp,asp,php.),由動(dòng)態(tài)頁(yè)面負(fù)責(zé)解析數(shù)據(jù)bool HttpInit();bool HttpAddPostString(BSTR strName, BSTR strValue);bool HttpAddPostCurrFile(BSTR strFileID, BSTR strFileName);BSTR HttpPost(BSTR bstr); */初始化Http引擎document.all.FramerControl1.HttpInit();/增加Post變量document.all.FramerControl1.HttpAddPostString(RecordID,20060102200);document.all.FramerControl1.HttpAddPostString(UserID,李局長(zhǎng));/上傳打開(kāi)的文件document.all.FramerControl1.HttpAddPostCurrFile(FileData, 文檔名.doc);/執(zhí)行上傳動(dòng)作document.all.FramerControl1.HttpPost(/uploadfile.asp); 1.1.4修訂痕跡/進(jìn)入留痕狀態(tài)document.all.FramerControl1.SetTrackRevisions(1);/進(jìn)入非留痕狀態(tài)document.all.FramerControl1.SetTrackRevisions(0);/接受當(dāng)前修訂document.all.FramerControl1.SetTrackRevisions(4);1.1.5設(shè)置當(dāng)前用戶document.all.FramerControl1.SetCurrUserName(張三); 1.1.6設(shè)置和創(chuàng)建書(shū)簽,此功能比較強(qiáng)大,設(shè)置書(shū)簽數(shù)據(jù)、添加書(shū)簽和添加紅頭文件SetFieldValue(BSTR strFieldName, BSTR strValue, BSTR strCmdOrSheetName)strFieldName:書(shū)簽名strValue:要設(shè)置的值strCmdOrSheetName:命令 :ADDMARK: 添加BookMark:DELMARK: 刪除這個(gè)BookMark:GETMARK: 定位到這個(gè)BookMark:FILE: 插入的是文件:JPG: 插入的是圖片一般來(lái)說(shuō):WORD中書(shū)簽是做好的,可以通過(guò)此接口把外界數(shù)據(jù)設(shè)置進(jìn)書(shū)簽中去。*/在當(dāng)前WORD位置插入標(biāo)簽,標(biāo)簽名 book1,數(shù)值 testdocument.all.FramerControl1.SetFieldValue(book1,test,:ADDMARK:);/設(shè)置書(shū)簽Time,數(shù)值 2006-03-16 22:22:22document.all.FramerControl1.SetFieldValue(Time,2006-03-16 22:22:22,);/在書(shū)簽位置hongtou,插入紅頭文件22/hongtou1.doc 這 ,紅頭 動(dòng)插進(jìn)去 document.all.FramerControl1.SetFieldValue(hongtou,22/hongtou1.doc,:FILE:);1.1.7刪除本地文件HRESULT DeleteLocalFile(in BSTR strFilePath); 數(shù):strFileName:文件本地 ,如c:11.doc 1.1.8 創(chuàng)建 文件HRESULT GetTempFilePath(out,retval BSTR* strValue); :文件的 地 。 用 ,用DeleteLocalFile 刪除1.1.9 下 文件HRESULT DownloadFile( in BSTR strRemoteFile, in BSTR strLocalFile, out,retval BSTR* strValue); 數(shù):strRemoteFile: 地 ,http or FtpstrLocalFile: 本地 地 ,if strLocalFile = NULL then Create Temp File and return TempFiles Path1.1.10 增加Http上傳 的, 加 文件HRESULT HttpAddPostFile(in BSTR strFileID, in BSTR strFileName, out,retval long* pbool);數(shù):strFileID:文件的ID, 服務(wù)器 頁(yè)面解析 strFileName: 本地文件地 1.2在Unieap中的應(yīng)用現(xiàn)在以實(shí) 在Unieap 中 用,在數(shù)據(jù)中創(chuàng)建一張TEST_WORD:CREATE TABLE TEST_WORD ( ROW_ID NUMBER NOT NULL, CONTEXT BLOB, PRIMARY KEY (ROW_ID) )中CONTEXT用currency1 文件, “ BLOB。1.2.1 修改*-ORACLE.XML文件由currency1ORACALE數(shù)據(jù)BLOB“數(shù)據(jù)插入的制,fi當(dāng)新增一fl數(shù)據(jù)的 接插入數(shù)據(jù)到BLOB“的中,以 :1.插入一flBLOB“ 的。2.”新插入的fl數(shù)據(jù)執(zhí)行新作, 文件數(shù)據(jù)以數(shù) 新到的BLOB“中。以 要修D(zhuǎn)AO下的*-ORACLE.XML文件:1.2.2 修改VOcurrency1BLOB“的, 用代碼器的VO的“是String的,以要修 byte“,代碼如下:private byte tw_CONTEXT; public byte getTw_CONTEXT() return tw_CONTEXT;public void setTw_CONTEXT(byte tw_CONTEXT) this.tw_CONTEXT = tw_CONTEXT;1.2.3 修改 ORM 頁(yè)面的WORD文件 要通過(guò)FORM傳到 ,以在form中currency1BLOB“的變量 能 String“ , 是設(shè)置 FormFile“:private FormFile tw_CONTEXT;public FormFile getTw_CONTEXT() return tw_CONTEXT;public void setTw_CONTEXT(FormFile tw_CONTEXT) this.tw_CONTEXT = tw_CONTEXT;public EAPValueObject transform() WordVO vo = new WordVO();vo.setTw_ROW_ID(EAPDataFormat.parseString(tw_ROW_ID, vo.getTw_ROW_ID();tryInputStream inputStream = tw_CONTEXT.getInputStream();vo.setTw_CONTEXT(getBytes(inputStream); catch(Exception ex)return vo;/ InputStream“ 數(shù) public static byte getBytes(InputStream is)throws Exceptionbyte data = null;Collection chunks = new ArrayList();byte buffer = new byte1024*1000;int read = -1;int size = 0;while(read=is.read(buffer)!=-1)if(read0)byte chunk = new byteread;System.arraycopy(buffer,0,chunk,0,read);chunks.add(chunk);size += chunk.length;if(size0)ByteArrayOutputStream bos = null;trybos = new ByteArrayOutputStream(size);for(Iterator itr=chunks.iterator();itr.hasNext();)byte chunk = (byte)itr.next();bos.write(chunk);data = bos.toByteArray();finallyif(bos!=null) bos.close();return data;/* 實(shí)現(xiàn)* 傳入的數(shù)據(jù) (VO)到當(dāng)前 * 建議 用EAPDataFormat.toString()進(jìn)行“*/ public void transform(EAPValueObject _vo) WordVO vo = (WordVO)_vo;tw_ROW_ID = EAPDataFormat.toString(vo.getTw_ROW_ID();: 中 傳入的數(shù)據(jù) (VO)到當(dāng)前 中 要VO中的BLOB“做。1.2.4 修D(zhuǎn)AO前面 說(shuō)過(guò) ,由currency1ORACLE本 的制,在BLOB“數(shù)據(jù)新增作的 要執(zhí)行插入BLOB在新BLOB“作,以修代碼如下:public boolean doInsertByVO(EAPValueObject vo) throws EAPDAOExceptionboolean result = true;WordVO wordVO = (WordVO)vo;tryresult = daoCommand.sm_insert(this.getNameSpace()+.+SQL_INSERT_BY_VO, vo);if(result)result = doUpdateByVO(wordVO);return result; catch(Exception ex) throw new EAPDAOException(ex); public boolean doUpdateByVO(EAPValueObject vo) throws EAPDAOExceptiontryreturn daoCommand.sm_update(this.getNameSpace()+.+SQL_UPDATE_BY_VO, vo); catch(Exception ex)throw new EAPDAOException(ex);1.2.5 修Service添加doGetFileData :public void doGetFileData(EAPRequest eapReq, EAPResponse eapResp) throws EAPServiceExceptioncommonBizInvoke(eapReq, eapResp, new EAPBizServiceHandleImpl(false)public boolean process(EAPRequest eapReq, EAPResponse eapResp)long idList = (long)eapReq.getDefaultData();EAPValueObject vo = null;EAPBizBO bo = getActiveBO();if(bo!=null & idList!=null)vo = bo.doFind(eapReq.getUserToken(), idList0);WordVO wordVO = (WordVO)vo;eapResp.setData(Tw_CONTEXT_BYTE,wordVO.getTw_CONTEXT();eapResp.setDefaultData(vo);return true;);1.2.6修Action添加doGetFileData :public ActionForward doGetFileData(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exceptionreturn monBizInvoke(mapping, form, request, response, this.getServiceName(), doGetFileData,new EAPBizActionHandleImpl() public boolean assembleRequest(EAPBizRequestEvent reqEvent) long idList = new long1;idList0 = Long.parseLong(reqEvent.getHttpRequest().getParameter(rowId);reqEvent.getEAPRequest().setDefaultData(idList);return true;public ActionForward assembleResponse(EAPBizResponseEvent respEvent)assembleResponseForm(respEvent.getHttpRequest(), respEvent.getForm(), respEvent.getEAPResponse();assembleResponseResult(respEvent.getHttpRequest(), respEvent.getEAPResponse();respEvent.getHttpRequest().setAttribute(FILE_DATA,(byte)respEvent.getEAPResponse().getData(Tw_CONTEXT_BYTE);return respEvent.getMapping().findForward(getFileData););1.2.7修 的struts-config.xml文件添加一個(gè)頁(yè)面 定 :1.2.8 添加jsp 文件1. 添加加 數(shù)據(jù)文件數(shù)據(jù)的jsp文件:ReadData.jsp,腳本代碼如下: ServletOutputStream sos=response.getOutputStream();try/String type = request.getParameter(type) = null ? image/pjpeg : request.getParameter(type);response.setContentType(application/msword);int len = (byte)request.getAttribute(FILE_DATA).length;InputStream stream = new ByteArrayInputStream(byte)request.getAttribute(FILE_DATA);sos.write(byte)request.getAttribute(FILE_DATA),0,len);sos.close();catch(Exception ex)%2. 添加dsoframer.ocx文件一置在一個(gè) 用的置文件 中。3. 添加 文件一 務(wù) 的 文件置currency1一個(gè) 用的文件 中。1.2.9 修adddEdit.jsp頁(yè)面在這加 DSOFramer控件,實(shí)現(xiàn)在線office文檔編輯、保存、 等 ,代碼如下:/* 打開(kāi)服務(wù)器文檔 */function command_onclick_openServer()document.all.FramerControl1.Open(/test/testword/word/template1.doc, true);/* 以服務(wù)器 文檔創(chuàng)建新文檔 */function command_onclick_openModelDocu() document.all.FramerControl1.CreateNew(/test/testword/word/template1.doc);document.all.FramerControl1.SetFieldValue(MTL_NAME,);document.all.FramerControl1.SetFieldValue(COUNT,9999,);document.all.FramerControl1.SetFieldValue(SKU,);document.all.FramerControl1.SetFieldValue(AMT,999999,);/* 插入紅頭文件 */function command_onclick_insertFile()document.all.FramerControl1.CreateNew(/test/testword/word/template1.doc);document.all.FramerControl1.SetFieldValue(title,/test/testword/word/redTitle.doc,:FILE:);/* 打開(kāi)數(shù)據(jù)文檔 */function command_onclick_openDatabase()var url = test/testword/word/Word.do?method=doGetFileData&rowId=”&type=application/msword;alert(url);document.all.FramerControl1.Open(url, false, Word.Document, , );/* 文檔作 大 到數(shù)據(jù) */function command_onclick_saveToDatabase()var success = SaveDocumentToDB();if (success = true)alert(Save Word Document success);elsealert(Save error! Please try again after!);return false;/* 到本地 文檔 */function command_onclick_save()document.all.FramerControl1.Save(c:temp.doc,true);/* 文檔 */function command_onclick_close()document.all.FramerControl1.Close();/* 刪除本地 文檔 */function command_onclick_delete()/ 能刪除 打開(kāi)的文件,以上傳 要 文件 刪除。command_onclick_close();document.all.FramerControl1.DeleteLocalFile(c:temp.doc);/* 文件到數(shù)據(jù), 文檔 本地HTML文件 一 傳到服務(wù)器 */function SaveDocumentToDB()/初始化Http引擎document.all.FramerControl1.HttpInit();/ ,設(shè)置 數(shù)document.all.FramerControl1.HttpAddPostString(SCSJ,2008-5-16 00:00:00);document.all.FramerControl1.HttpAddPostString(GZLJDID,2);/上傳打開(kāi)的文件document.all.FramerControl1.HttpAddPostCurrFile(tw_CONTEXT, );/執(zhí)行上傳動(dòng)作var url = test/testword/word/Word.do?method=doAdd;tryvar tar = document.all.FramerControl1.HttpPost(url); catch(e)return false; finallyreturn true;/* 文檔 初始化 */function FramerControl1_Init() document.all.FramerControl1.CreateNew(Word.Document);document.all.FramerControl1.ActiveDocument.Content.text = ,好;/, 刪去-%word在線編輯 :代碼的默認(rèn)頁(yè)面只能 form傳遞String “的值,以 要修頁(yè)面的提 :1.2.10頁(yè)面效果A推薦免費(fèi)好用的Web在線Office(Word)編輯控件 DSOFramer下 +開(kāi)發(fā)接口當(dāng)前版本:V 2006-11-29DSOFramerdso接口說(shuō)明版本修:V修:修 HttpPost 的一些問(wèn)。 V增加:id(0x00010041), helpstring(Get Rev Index)HRESULT GetRevCount( out,retval long * pbool);id(0x00010042), helpstring(Get Rev Index Info)HRESULT GetRevInfo(in long lIndex, in long lType, out,retval BSTR* pbool);id(0x00010043), helpstring(Set Doc Prop)HRESULT SetValue(in BSTR strValue, in BSTR strName, out,retval long* pbool);id(0x00010044), helpstring(Set Doc Variable)HRESULT SetDocVariable(in BSTR strVarName, in BSTR strValue,in long lOpt, out,retval long* pbool);id(0x00010045), helpstring(Save page To Doc)HRESULT SetPageAs(in BSTR strLocalFile, in long lPageNum, in long lType,out,retval long* pbool);-LoadDso.jsvar s = s += s += document.write(s) -接口文檔:/*1.新建*/新建Worddocument.all.FramerControl1.CreateNew(Word.Document);/新建Exceldocument.all.FramerControl1.CreateNew(Excel.Sheet);/*2.打開(kāi)文件*/打開(kāi)制定的本地文件document.all.FramerControl1.Open(C:TestBook.xls);/制定用Word來(lái)打開(kāi)c:plain.txt文件document.all.FramerControl1.Open(C:Plain.txt,false, Word.Document);/打開(kāi)服務(wù)器的文件 document.all.FramerControl1.Open https:/secureserver/test/mytest.asp?id=123,true, Excel.Sheet, MyUserAccount, MyPassword);/打開(kāi)服務(wù)器的文件 document.all.FramerControl1.Open(http:/localhost/1.doc, true);/*3. 文件*/到本地document.all.FramerControl1.Save(c:1.doc,true);/服務(wù)器 /*增加Http協(xié)議Post上傳接口,可以Post一個(gè)動(dòng)態(tài)頁(yè)面(jsp,asp,php.),由動(dòng)態(tài)頁(yè)面負(fù)責(zé)解析數(shù)據(jù)bool HttpInit();bool HttpAddPostString(BSTR strName, BSTR strValue);bool HttpAddPostCurrFile(BSTR strFileID, BSTR strFileName);BSTR HttpPost(BSTR bstr); */初始化Http引擎document.all.FramerControl1.HttpInit();/增加Post變量document.all.FramerControl1.HttpAddPostString(RecordID,20060102200);document.all.FramerControl1.HttpAddPostString(UserID,李局長(zhǎng));/上傳打開(kāi)的文件document.all.FramerControl1.HttpAddPostCurrFile(FileData, 文檔名.doc);/執(zhí)行上傳動(dòng)作document.all.FramerControl1.HttpPost(/uploadfile.asp); /*4.修訂留痕*/進(jìn)入留痕狀態(tài)document.all.FramerControl1.SetTrackRevisions(1);/進(jìn)入非留痕狀態(tài)document.all.FramerControl1.SetTrackRevisions(0);/接受當(dāng)前修訂document.all.FramerControl1.SetTrackRevisions(4);/*5.設(shè)置當(dāng)前用戶*/document.all.FramerControl1.SetCurrUserName(張三); /*6.設(shè)置當(dāng)前 間(筆跡留痕會(huì)顯 (Like 2006:02:07 11:11:11)*/document.all.FramerControl1.SetCurrTime(2006:02:07 11:11:11);/*7.設(shè)置和創(chuàng)建書(shū)簽,此功能比較強(qiáng)大,設(shè)置書(shū)簽數(shù)據(jù)、添加書(shū)簽和添加紅頭文件 靠 SetFieldValue(BSTR strFieldName, BSTR strValue, BSTR strCmdOrSheetName)strFieldName:書(shū)簽名strValue:要設(shè)置的值strCmdOrSheetName:命令 :ADDMARK: 添加BookMark:DELMARK: 刪除這個(gè)BookMark:GETMARK: 定位到這個(gè)BookMark:FILE: 插入的是文件:JPG: 插入的是圖片一般來(lái)說(shuō):WORD中書(shū)簽是做好的,可以通過(guò)此接口把外界數(shù)據(jù)設(shè)置進(jìn)書(shū)簽中去。*/在當(dāng)前WORD位置插入標(biāo)簽,標(biāo)簽名 book1,數(shù)值 testdocument.all.FramerControl1.SetFieldValue(book1,test,:ADDMARK:);/設(shè)置書(shū)簽Time,數(shù)值 2006-03-16 22:22:22document.all.FramerControl1.SetFieldValue(Time,2006-03-16 22:22:22,);/在書(shū)簽位置hongtou,插入紅頭文件22/hongtou1.doc 這 ,紅頭 動(dòng)插進(jìn)去 document.all.FramerControl1.SetFieldValue(hongtou,22/hongtou1.doc,:FILE:);/*8.設(shè)置菜 顯 情況BOOL SetMenuDisplay(long lMenuFlag)lMenuFlag 以下數(shù)值的 合#define MNU_NEW 0x01#define MNU_OPEN 0x02#define MNU_CLOSE 0x04#define MNU_SAVE 0x08#define MNU_SAVEAS 0x16#define MNU_PGSETUP 0x64#define MNU_PRINT 0x256#define MNU_PROPS 0x32#define MNU_PRINTPV 0x126*/只“新建”菜 可用 document.all.FramerControl1.SetMenuDisplay(1);/只“打開(kāi)”菜 可用 document.all.FramerControl1.SetMenuDisplay(2);/只“打開(kāi)”和“新建”菜 可用 document.all.FramerControl1.SetMenuDisplay(3);/*9. 護(hù)文檔和解 護(hù)文檔lProOrUn:1: 護(hù)文檔;0:解除 護(hù)lProType: wdNoProtection = -1,wdAllowOnlyRevisions = 0,wdAllowOnlyComments = 1,wdAllowOnlyFormFields = 2strProPWD:密碼*/ 全 護(hù)文檔,密碼 pwd document.all.FramerControl1.ProtectDoc(1,1,pwd);/解除文檔 護(hù) document.all.FramerControl1.ProtectDoc(0,1,pwd);/*10.顯 或隱藏修訂內(nèi)容ShowRevisions(long nNewValue)nNewValue = 0 則隱藏修訂= 1 則顯 修訂*/顯 修訂留痕document.all.FramerControl1.ShowRevisions(1);/隱藏修訂留痕document.all.FramerControl1.ShowRevisions(0);/*11.插入合 文件,strFieldPath 文件 ,可以是http,ftp的 pPos = 0 /當(dāng)前鼠標(biāo)位置1;文件開(kāi)頭2;文件末尾pPos的第4位 1的 ,代插入的是圖片InSertFile(BSTR strFieldPath, long lPos)*/文件頭部插入文件document.all.FramerControl1.InSertFile(http:/XX.com/XX.doc,1);/文件尾部插入文件 document.all.FramerControl1.InSertFile(http:/XX.com/XX.doc,2);/當(dāng)前光標(biāo)位置插入文件document.all.FramerControl1.InSertFile(http:/XX.com/XX.doc,0);/文件頭部插入圖片document.all.FramerControl1.InSertFile(http:/XX.com/XX.jpg,9);/文件尾部插入圖片document.all.FramerControl1.InSertFile(http:/XX.com/XX.jpg,10);/當(dāng)前光標(biāo)位置插入圖片document.all.FramerControl1.InSertFile(http:/XX.com/XX.jpg,8);/*0x31. 文檔 HRESULT SaveAs(in VARIANT strFileName, in VARIANT dwFileFormat, out,retval long* pbool); 數(shù):strFileName:文件本地 ,如c:11.docdwFileFormat: 文件格dwFileFormat的數(shù)值 :Excel: Typeenum XlFileFormatxlAddIn = 18,xlCSV = 6,xlCSVMac = 22,xlCSVMSDOS = 24,xlCSVWindows = 23,xlDBF2 = 7,xlDBF3 = 8,xlDBF4 = 11,xlDIF = 9,xlExcel2 = 16,xlExcel2FarEast = 27,xlExcel3 = 29,xlExcel4 = 33,xlExcel5 = 39,xlExcel7 = 39,xlExcel9795 = 43,xlExcel4Workbook = 35,xlIntlAddIn = 26,xlIntlMacro = 25,xlWorkbookNormal = -4143,xlSYLK = 2,xlTemplate = 17,xlCurrentPlatformText = -4158,xlTextMac = 19,xlTextMSDOS = 21,xlTextPrinter = 36,xlTextWindows = 20,xlWJ2WD1 = 14,xlWK1 = 5,xlWK1ALL = 31,xlWK1FMT = 30,xlWK3 = 15,xlWK4 = 38,xlWK3FM3 = 32,xlWKS = 4,xlWorks2FarEast = 28,xlWQ1 = 34,xlWJ3 = 40,xlWJ3FJ3 = 41,xlUnicodeText = 42,xlHtml = 44;Word: Typeenum WdSaveFormatwdFormatDocument = 0,wdFormatTemplate = 1,wdFormatText = 2,wdFormatTextLineBreaks = 3,wdFormatDOSText = 4,wdFormatDOSTextLineBreaks = 5,wdFormatRTF = 6,wdFormatUnicodeText = 7,wdFormatEncodedText = 7,wdFormatHTML = 8;PPT:enum PpSaveAsFileTypeppSaveAsPresentation = 1,ppSaveAsPowerPoint7 = 2,ppSaveAsPowerPoint4 = 3,ppSaveAsPowerPoint3 = 4,ppSaveAsTemplate = 5,ppSaveAsRTF = 6,ppSaveAsShow = 7,ppSaveAsAddIn = 8,ppSaveAsPowerPoint4FarEast = 10,ppSaveAsDefault = 11,ppSaveAsHTML = 12,ppSaveAsHTMLv3 = 13,ppSaveAsHTMLDual = 14,ppSaveAsMetaFile = 15,ppSaveAsGIF = 16,ppSaveAsJPG = 17,ppSaveAsPNG = 18,ppSaveAsBMP = 19;*/*0x32. 刪除本地文件HRESULT DeleteLocalFile(in BSTR strFilePath); 數(shù): strFileName:文件本地 ,如c:11.doc */ /*0x33.創(chuàng)建 文件HRESULT GetTempFilePath(out,retval BSTR* strValue); :文件的 地 。 用 ,用DeleteLocalFile 刪除*/*0x34.設(shè)置文檔顯 HRESULT ShowView(in long dwViewType, out,retval long * pbool); dwViewType的可取值 :enum WdViewTypewdNormalView = 1,wdOutlineView = 2,wdPrintView = 3,wdPrintPreview = 4,wdMasterView = 5, /這個(gè)是大綱wdWebView = 6;*/ /大綱 document.all.FramerControl1.ShowView(5);/*0x39:下 文件HRESULT DownloadFile( in BSTR strRemoteFile, in BSTR strLocalFile, out,retval BSTR* strValue); 數(shù):strRemoteFile: 地 ,http or F
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年電氣傳動(dòng)技術(shù)在水處理中的應(yīng)用
- 2026年建筑電氣設(shè)計(jì)中的綠色能源應(yīng)用
- 2026年G技術(shù)在房地產(chǎn)中的創(chuàng)新應(yīng)用前景
- 貨運(yùn)駕駛員行車安全培訓(xùn)課件
- 檢驗(yàn)醫(yī)學(xué)新技術(shù)與應(yīng)用
- 婦產(chǎn)科護(hù)理要點(diǎn)與急救技術(shù)
- 醫(yī)療機(jī)器人輔助手術(shù)的挑戰(zhàn)與機(jī)遇
- 2026年廣州城市職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能筆試備考試題帶答案解析
- 2026年廣州體育職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性測(cè)試參考題庫(kù)帶答案解析
- 生物醫(yī)學(xué)光子學(xué)在疾病診斷中的應(yīng)用
- DB44∕T 2722-2025 公路工程造價(jià)管理指南
- 2025四川成都益民集團(tuán)所屬企業(yè)招聘財(cái)務(wù)綜合崗等崗位模擬筆試試題及答案解析
- 政府采購(gòu)招標(biāo)代理機(jī)構(gòu)自查報(bào)告三篇
- 2025年公務(wù)員多省聯(lián)考《申論》(陜西A卷)題及參考答案
- 醫(yī)藥研發(fā)合成工作總結(jié)
- 2025年檢驗(yàn)科工作總結(jié)及2026年工作計(jì)劃6篇
- 放射科X線胸片診斷技術(shù)要點(diǎn)
- 省級(jí)課題答辯課件
- 2025年四川省法院書(shū)記員招聘考試筆試試題含答案
- GB/T 9944-2025不銹鋼絲繩
- 第16課 三國(guó)鼎立(說(shuō)課稿)2024-2025學(xué)年七年級(jí)歷史上冊(cè)同步高效課堂(統(tǒng)編版2024)
評(píng)論
0/150
提交評(píng)論