<th id="jklfj"></th>
    <tbody id="jklfj"></tbody>
    <th id="jklfj"></th>
    <progress id="jklfj"></progress>
    <ol id="jklfj"><ruby id="jklfj"><u id="jklfj"></u></ruby></ol>
    <legend id="jklfj"></legend>

    NTKO - OFFICE文檔控件開發接口參考V4061 - 圖文 聯系客服

    在WEB中使用OFFICE文檔! V4.0版 NTKO OFFICE文檔控件開發接口參考V4.0 Build 4,0,6,1

    更新時間:2009年5月16日

    開發接口 千航網絡【NTKO SOFTWARE】

    重慶軟航科技有限公司 電子郵件:SUPPORT@NTKO.COM WEB:HTTP://WWW.NTKO.COM/ 技術開發網站:HTTP://DEV.NTKO.COM TEL-FAX:023-62943208/07

    ? COPYRIGHT 2003-2007,BY NTKO? SOFTWARE

    ALL RIGHTS RESERVED

    ?版權所有:千航網絡, 重慶軟航科技有限公司

    保留所有權利

    未經許可,請勿分發本文檔的部分或全部

    目 錄

    目錄

    第1章 軟件最終用戶許可協議 ················· 1 第2章 功能介紹(Features) ·············· 1

    1、 功能簡介 ···························································· 1 2、 4.0版本的新功能 ·············································· 2 3、 詳細功能列表 ···················································· 2 4、 需要的軟件 ························································ 5 5、 支持的Web服務器 ·········································· 5 6、 HTML Object標識符 ········································ 5

    第3章 主要屬性參考 ······························ 5

    3.1、 一般界面相關 ················································ 5 1、 Statusbar ··························································· 6 2、 Caption······························································· 6 3、 BackColor,ForeColor ···································· 6 4、 BorderColor ······················································· 6 5、 TitlebarColor,TitlebarTextColor··················· 6 6、 TitleBar······························································· 6 7、 BorderStyle························································ 6 3.2、 工具欄相關屬性 ············································ 7 1、 ToolBars ···························································· 7 2、 IsResetToolbarsOnOpen ································ 7 3.3、 菜單控制相關屬性 ········································ 7 1、 Menubar····························································· 7 2、 MenubarColor ··················································· 7 3、 MenuBarStyle ··················································· 7 4、 MenuButtonColor ············································· 8 5、 MenuButtonStyle ·············································· 8 6、 MenuButtonFrameColor·································· 8 7、 CustomMenuCaption[已過時]························· 8 8、 MenuItemCount[已過時]·································· 9 9、 FileMenuItemCount·········································· 9 10、 IsShowToolMenu ··········································· 9 11、 IsShowHelpMenu··········································· 9 12、 IsShowInsertMenu ········································· 9 13、 IsShowEditMenu ············································ 9 14、 FileNew,FileOpen,FileClose,FileSave,FileSaveAs,FilePrint,FilePrintPreview,FilePageSetup,FileProperties······························ 9 15、 EnableFileCommand [已過時] ··················· 10 3.4、 文檔信息和行為控制相關屬性 ·················· 10

    1、 ActiveDocument ············································· 10 2、 WebFileName ················································· 10 3、 IsShowFileErrorMsg ······································ 11 4、 DocType ·························································· 11 5、 DocSize···························································· 11 6、 IsNoCopy ························································· 11 7、 IsStrictNoCopy················································ 11 8、 Data ·································································· 11 9、 NCOData ························································· 12 10、 StatusMessage············································· 12 11、 StatusCode ··················································· 12 12、 SignCursorType ··········································· 12 3.5、 網絡傳輸控制相關屬性 ······························ 12 1、 MaxUploadSize ·············································· 12 2、 IsUseUTF8URL ·············································· 12 3、 IsUseUTF8Data·············································· 12 4、 IsShowNetErrorMsg······································· 12 5、 IsUseControlAgent ········································· 13 6、 IsDirectConnect ·············································· 13 7、 IsOpenURLReadOnly···································· 13 3.6、 全屏手寫簽名/繪圖相關屬性 ····················· 13 1、 HandSign2Color ············································· 13 2、 HandSign2PenWidth ····································· 13 3、 HandSign2Relative ········································ 13 4、 HandSign2BelowText ···································· 14 3.7、 數字證書簽名相關屬性 ······························ 14 1、 IsSaveDocExtention ······································ 14 2、 IsSaveDataIfHasVDS ···································· 14 3.8、 控件密鑰相關屬性 ······································ 14 1、 ProductCaption,ProductKey ······················ 14 3.9、 與事件處理相關的屬性 ······························ 14 1、 CancelLastCommand ···································· 14 2、 CancelSheetDoubleClick ······························ 15 3、 CancelSheetRightClick ································· 15 4、 CancelWordRightClick ·································· 15 5、 CancelPPTRightClick ···································· 15

    第4章 主要方法參考····························· 15

    4.1、 新建、打開和保存文檔相關方法 ·············· 15 1、 CreateNew ······················································ 16 2、 SaveToURL····················································· 16

    目 錄

    3、 BeginOpenFromURL ····································· 18 4、 OpenFromURL ··············································· 19 5、 OpenLocalFile················································· 20 6、 SaveToLocal ··················································· 20 7、 PublishAsHTMLToURL ································· 20 8、 SaveAsHTMLFile ··········································· 21 9、 SaveAsOtherFormatToURL ························· 21 10、 SaveAsOtherFormatFile ····························· 22 11、 SaveAsPDFFile ············································ 22 12、 PublishAsPDFToURL·································· 23 13、 OpenFromODBCds ····································· 24 14、 SaveToODBCds··········································· 24 15、 OpenNCOFromLocal··································· 25 16、 SaveNCOToLocal ········································ 25 17、 OpenNCOFromURL ···································· 25 18、 SaveNCOToURL·········································· 25 4.2、 文檔通用方法 ·············································· 26 1、 SetReadOnly··················································· 26 2、 Activate ···························································· 26 3、 ShowCommandBar········································ 26 4、 ShowDialog ····················································· 26 5、 PrintOut···························································· 27 6、 PrintPreview ···················································· 27 7、 Close ································································ 27 8、 GetOfficeVer ··················································· 27 9、 GetWPSVer····················································· 27 4.3、 自定義菜單相關方法 ·································· 27 1、 AddCustomMenu2 ········································· 28 2、 AddCustomMenuItem2 ································· 28 3、 EnableCustomMenuItem2 ···························· 31 4、 RemoveCustomMenu2 ································· 32 5、 AddCustomMenuItem[已過時] ····················· 32 6、 RemoveCustomMenuItem[已過時]·············· 33 7、 ClearAllCustomMenuItems[已過時]············· 33 8、 AddFileMenuItem ··········································· 33 9、 RemoveFileMenuItem ··································· 34 10、 ClearAllFileMenuItems ································ 34 4.4、 手寫簽名,電子印章和圖片操作相關方法34 1、 AddPicFromLocal ··········································· 34 2、 AddPicFromURL ············································ 35 3、 AddPicFromScanner······································ 36 4、 AddSignFromLocal ········································ 37 5、 AddSignFromURL ·········································· 38

    6、 DoHandSign2·················································· 39 7、 DoHandDraw2 ················································ 40 8、 DoCheckSign ·················································· 41 9、 SetAutoCheckSignKey ·································· 42 10、 SetSignsVisible ············································ 42 11、 ClearSigns····················································· 42 12、 DoHandSign【請使用DoHandSign2】···· 42 13、 DoHandDraw【請使用DoHandDraw2】 · 44 4.5、 文檔控件調用安全簽章系統的相關方法 ·· 45 1、 IsNTKOSecSignInstalled ······························ 45 2、 AddSecHandSign··········································· 45 3、 AddSecKeyBoardComment ························· 46 4、 AddSecSignFromEkey ·································· 47 5、 AddSecSignFromLocal ································· 48 6、 AddSecSignFromURL ··································· 49 4.6、 數字證書簽名相關方法 ······························ 50 1、 AddDigitalSignature ······································· 50 2、 ReDigitalSignature ········································· 51 3、 VerifyDigitalSignature ···································· 51 4、 GetDSCount···················································· 51 5、 GetValidDSCount ··········································· 51 6、 DS_CSPProviderName································· 51 4.7、 適用于WORD文檔的簡化方法 ··············· 51 1、 AddTemplateFromLocal································ 51 2、 GetBookmarkValue········································ 51 3、 SetBookmarkValue ········································ 52 4、 AddTemplateFromURL ································· 52 5、 AddNCOTemplateFromURL ························ 52 6、 AddNCOTemplateFromLocal······················· 52 4.8、 適用于EXCEL的簡化方法 ······················· 52 1、 AddSheet ························································· 53 2、 GetSheetsCount ············································· 53 3、 GetRangeValue ·············································· 53 4、 SetRangeValue ·············································· 53 5、 GetRangeFormula·········································· 53 6、 SetRangeFormula ·········································· 53 7、 SetRangeLocked············································ 54 4.9、 自定義通訊相關方法 ·································· 54 1、 DoWebGet······················································· 54 2、 DoWebExecute··············································· 54 3、 DoWebExecute2 ············································ 54 4、 AddHTTPHeader············································ 54 5、 HTTPHeaderReset ········································ 55

    目 錄

    2、 軟航?,千航?,NTKO?商標說明 ··········· 74

    第5章 主要事件參考 ···························· 55

    5.1、 文檔相關事件 ·············································· 55 1、 AfterOpenFromURL ······································· 55 2、 AfterPublishAsPDFToURL ··························· 55 3、 OnDocumentOpened····································· 55 4、 OnDocumentClosed ······································ 56 5、 OnDocActivated·············································· 56 5.2、 菜單相關事件 ·············································· 56 1、 OnFileCommand ············································ 56 2、 OnCustomMenuCmd2··································· 56 3、 OnCustomMenuCmd[已過時]······················· 57 4、 OnCustomFileMenuCmd ······························ 57 5.3、 安全簽章系統相關事件 ······························ 58 1、 OnBeforeDoSecSign ····································· 58 2、 OnBeforeDoSecSignFromEkey ··················· 58 3、 OnSecSignSetInfo ········································· 59 5.4、 簽名印章相關事件 ······································ 62 1、 AfterHandSignOrDraw··································· 62 2、 AfterCheckSign··············································· 62 3、 OnSignSelect ·················································· 62 5.5、 WORD及WPS事件 ································· 63 1、 OnWordWPSSelChange······························· 63 2、 OnWordBeforeRightClick······························ 63 5.6、 EXCEL事件 ················································ 63 1、 OnSheetSelectionChange ···························· 63 2、 OnSheetBeforeDoubleClick ························· 63 3、 OnSheetBeforeRightClick····························· 63 5.7、 PPT相關事件 ············································· 64 1、 OnPPTBeforeRightClick ······························· 64

    第6章 JavaScript/Jscript代碼········ 64

    1、 使用JavaScript響應控件事件······················ 64 2、 其他示例請參考 ·············································· 65

    第7章 常見問題(FAQs)··················· 65

    1、 SaveToURL方法出錯···································· 65 2、 如何調用Word自己的對話框? ··················· 66 3、 如何設置禁止拷貝文檔數據? ······················ 73 4、 如果控件不能運行怎么辦? ·························· 73 5、 如何在部分設置屬性?73 6、 如何輸入產品密鑰? ······································ 73

    第8章 商標和權利聲明 ························· 74

    1、 關于本文提到的商標聲明 ······························ 74