• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            昨日

            小勝憑智 大勝靠德

            C++博客 首頁 新隨筆 聯(lián)系 聚合 管理
              2 Posts :: 0 Stories :: 257 Comments :: 0 Trackbacks

            2006年4月17日 #

            以下為“初學(xué)者”提供
            ======================================
            給控件做數(shù)字簽名之一:

            首先要生成證書文件,根據(jù) <<昨日兄弟>> 推薦的網(wǎng)址: http://www.globalsign.net/digital_certificate/personalsign/index.cfm
            首頁有一個月免費(fèi)使用的證書提供申請,過期了再重復(fù)申請便是,既然是免費(fèi)的就無所謂麻煩了@_@

            a:按該站要求的八點(diǎn)步驟操作完成后,該站會在本機(jī)安裝一個根據(jù)你Email生成的證書, b:導(dǎo)出證書: 打開Internet屬性>內(nèi)容>證書>然后在個人證書標(biāo)簽頁,便可以找到該網(wǎng)站所安裝的證書,點(diǎn)擊導(dǎo)出按鈕,其它的按提示繼續(xù)操作。

            給控件做數(shù)字簽名之二:

            使用數(shù)字簽名工具包,請在此處下載
            http://www.cnblogs.com/Files/babyt/SignTool.rar

            然后再利用該工具包中的signcode.exe,選擇相應(yīng)的ocx或cab
            進(jìn)行下一步,并點(diǎn)擊"存儲區(qū)選擇"按鈕進(jìn)行選擇簽名之一所安裝的證書。
            再下一步,錄入一些簡要,便可大功告成了。

            再次感謝昨日兄弟!!
            ============================================
            posted @ 2006-04-17 16:10 昨日 閱讀(2658) | 評論 (4)編輯 收藏

            2006年2月20日 #

            公告:留言請到Http://www.dsoframer.com上。


            另DSOFramer QQ群: 22190338


            =========================

            轉(zhuǎn)移戰(zhàn)場了   2007-04-26

             

            =============================================================
            1.Html電子印章、手寫簽系統(tǒng)
            演示:http://www.dianju.com.cn/video.htm

            在線試用:
            http://www.dianju.com.cn/websignpiaoju/
            http://www.dianju.com.cn/websigndemo/

            2.Word、Excel 電子印章,手寫簽名系統(tǒng):
             演示版:
            http://www.dianju.com.cn/video.htm
            下載:
            http://www.dianju.com.cn/downloads/des/DES_Setup_File.rar


            開發(fā)商:北京點(diǎn)聚信息技術(shù)有限公司
            網(wǎng)址:  http://www.dianju.com.cn
            公安部安全認(rèn)證產(chǎn)品!
            電子印章、電子簽章、電子簽名、全文批注、領(lǐng)導(dǎo)簽批、安全文檔整體解決方案。
            點(diǎn)聚電子簽章系統(tǒng)特點(diǎn)
            1.實(shí)現(xiàn)在Word、Excel、Html、PDF、AutoCAD、WPS、RedOffice、SunOffice上加蓋印章。
            2.采用高度安全機(jī)制。
            3.手寫簽批效果,筆跡采用壓感處理,用戶可以很容易寫出毛筆、鋼筆等帶筆鋒的效果。
            4.系統(tǒng)提供標(biāo)準(zhǔn)接口,可供客戶進(jìn)行二次開發(fā)和各種功能整合。
            5.支持多種印章保護(hù)控制,有效保護(hù)印章的安全。  
            ... ....
            ==============================================================




            20061123:
            轉(zhuǎn)移戰(zhàn)場了。http://www.dsoframer.com
            免費(fèi)的空間
            ------------------------------------------------------


            下面接口添加完畢:
            1。文檔打開、可寫密碼設(shè)置
            2。支持Open Http下的文件的 相對路徑打開
            3。支持對文檔中域的自動更新
            4。支持創(chuàng)建本地文件,和刪除文件
            5。獲取所有的修訂的信息
            6。獲取所有書簽的信息
            本周末更新。文檔還沒寫好。
            20061120


            Thanks For  Fred
            QQ群:22190338  群已經(jīng)快滿了。請想加入者給群充Q幣先。


            20060610:
            目前版本 :V2.2
            修改后的DSOFrmaer源代碼下載:http://www.shnenglu.com/Files/wanhhf/DSO_WebOffice_Open_V2.2.rar

            1。笨笨修改原版本中的 Post時候,為加 Head ,的Bug。(Thanks )
            2. 增加了FTP的功能。


             20060521:

            Word,Excel接口文檔下載:http://wanhhf.googlepages.com/OfficeSDK_V9.0.rar
            修改后的DSOFrmaer源代碼下載:http://www.shnenglu.com/Files/wanhhf/DSOFramer_Open_V2.0.rar 
            編譯好的DSOFramer.ocx 下載 :http://www.shnenglu.com/Files/wanhhf/DSOFramer_0521.rar 
            如何對做好的控件簽名:http://www.shnenglu.com/wanhhf/AddToFavorite.aspx?id=5759
            備注:
                   凡對此源代碼進(jìn)行修改的程序,希望能給作者發(fā)一份,或在此公開。
             
            <object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57"  CodeBase= Dsoframer.ocx#Version=2,0.0,4
            id="oframe" width="1000" height="1000">
                     <param name="BorderStyle" value="1">
                     <param name="TitlebarColor" value="52479">
                     <param name="TitlebarTextColor" value="0">
                     <param name="Menubar" value="1"> 
             </object>

            事件:
            1。NotifyCtrlReady 事件,控件初始化完畢會觸發(fā)
                 最好在這個事件里面調(diào)用Open,或者CreateNew接口

            /*
            1.新建
            */
            //新建Word
            document.all.FramerControl1.CreateNew("Word.Document");
            //新建Excel
            document.all.FramerControl1.CreateNew("Excel.Sheet");

            /*
            2.打開文件
            */
            //打開制定的本地文件
            document.all.FramerControl1.Open("C:\\TestBook.xls");
            //制定用Word來打開c:\plain.txt文件
            document.all.FramerControl1.Open("C:\\Plain.txt",false, "Word.Document");
            //打開服務(wù)器的文件
            document.all.FramerControl1.Open "https://secureserver/test/mytest.asp?id=123",true, "Excel.Sheet", "MyUserAccount", "MyPassword");
            //打開服務(wù)器的文件
            document.all.FramerControl1.Open("http://localhost/1.doc", true);

            /*
            3.保存文件
            */
            //到本地
            document.all.FramerControl1.Save("c:\\1.doc",true);
            //服務(wù)器  
            /*增加Http協(xié)議Post上傳接口,可以Post一個動態(tài)頁面(jsp,asp,php...),由動態(tài)頁面負(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","李局長");
            //上傳打開的文件
            document.all.FramerControl1.HttpAddPostCurrFile("FileData", "文檔名.doc");
            //執(zhí)行上傳動作
            document.all.FramerControl1.HttpPost("

            /*
            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)前時間(筆跡留痕會顯示("Like 2006:02:07 11:11:11")
            */
            document.all.FramerControl1.SetCurrTime("2006:02:07 11:11:11");

            /*
            7.設(shè)置和創(chuàng)建書簽,此功能比較強(qiáng)大,設(shè)置書簽數(shù)據(jù)、添加書簽和添加紅頭文件就靠他了
            SetFieldValue(BSTR strFieldName, BSTR strValue, BSTR strCmdOrSheetName)
            strFieldName:書簽名
            strValue:要設(shè)置的值
            strCmdOrSheetName:命令 ::ADDMARK::   ::FILE::
            一般來說:WORD中書簽是做好的,可以通過此接口把外界數(shù)據(jù)設(shè)置進(jìn)書簽中去。
            */
            //在當(dāng)前WORD位置插入標(biāo)簽,標(biāo)簽名為"book1",數(shù)值為"test"
            document.all.FramerControl1.SetFieldValue("book1","test","::ADDMARK::");

            //設(shè)置書簽"Time",數(shù)值為"2006-03-16 22:22:22"
            document.all.FramerControl1.SetFieldValue("Time","2006-03-16 22:22:22","");

            //在書簽位置"hongtou",插入紅頭文件"document.all.FramerControl1.SetFieldValue("hongtou","

            /*
            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);
            //只有“打開”菜單可用
            document.all.FramerControl1.SetMenuDisplay(2);
            //只有“打開”和“新建”菜單可用
            document.all.FramerControl1.SetMenuDisplay(3);

            /*
            9.保護(hù)文檔和解保護(hù)文檔
            lProOrUn:1:保護(hù)文檔;0:解除保護(hù)
            lProType: 
                wdNoProtection = -1,
                wdAllowOnlyRevisions = 0,
                wdAllowOnlyComments = 1,
                wdAllowOnlyFormFields = 2
            strProPWD:密碼
            */
            //完全保護(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);
            /*
            */
            document.all.FramerControl1.InSertFile("
            http://localhost/1.doc");


            /*
            11.設(shè)置文檔瀏覽模式
             ShowView(long dwViewType)

            */
            //大綱模式
            document.all.FramerControl1.ShowView(5);

            /*
            12.插入合并文件,
            strFieldPath 文件路徑,可以是http,ftp的路徑

            pPos = 0 //當(dāng)前鼠標(biāo)位置
            1;文件開頭
            2;文件末尾
             
            InSertFile(BSTR strFieldPath, long lPos)
            */
            //文件頭部
            document.all.FramerControl1.InSertFile(");
            //文件尾部
            document.all.FramerControl1.InSertFile("
            );



            ===================================================================
            DSOFramer原有的接口說明
            1.void CreateNew(BSTR ProgIdOrTemplate)
              新建文檔,
              其中: ProgIdOrTemplate參數(shù):
            Excel Spreadsheet     "Excel.Sheet"
            Excel Chart        "Excel.Chart"
            PowerPoint Presentation  "PowerPoint.Show"
            Project Project      "MSProject.Project"
            Visio Drawing       "Visio.Drawing"
            Word Document       "Word.Document"
            2.  HRESULT Open([in] VARIANT Document, [in, optional] VARIANT ReadOnly,
            [in, optional] VARIANT ProgId, [in, optional] VARIANT WebUsername, [in, optional] VARIANT WebPassword)
                打開文檔,可以是本地文件或者是服務(wù)器文件
            參數(shù):
             Document  文檔路徑
             ReadOnly  是否已只讀模式打開
             ProgId    OLE類型
             WebUsername  用戶名(訪問網(wǎng)絡(luò)的文件時候,有可能需要)
             WebPassword  密碼
            例子:
            DsoFramer1.Open "C:\TestBook.xls"
            DsoFramer1.Open "C:\Plain.txt", , "Word.Document"  //用Word來打開c:\plain.txt文件
            DsoFramer1.Open "
            https://secureserver/test/mytest.asp?id=123", True, "Excel.Sheet", "MyUserAccount", "MyPassword"

            3.HRESULT Save([in, optional] VARIANT SaveAsDocument, [in, optional] VARIANT OverwriteExisting,
                            [in, optional] VARIANT WebUsername, [in, optional] VARIANT WebPassword);
            保存文件在本地
             DsoFramer1.Save "c:\1.doc"
             
            4.Activate
            激活當(dāng)前文檔,沒搞明白有什么用
            5.  HRESULT ActiveDocument([out,retval] IDispatch** ppdisp);
            返回當(dāng)前活動文檔的Dispatch接口,這個接口很重要,可以通過這個接口,操作所有的文檔接口。
            如:下面 javascript 語句調(diào)用Office內(nèi)置的對話框
            var obj;
            obj = new Object(document.all.FramerControl1.ActiveDocument);
            if(obj !=null){
             var dd;
             dd = obj.Application.Dialogs(84).Show();
             //... ...
             //delete it
             delete obj;
            }
            6.  HRESULT Close();
            關(guān)閉當(dāng)前文檔,建議在頁面關(guān)閉的時候調(diào)用。
            MS的原來的版本,有時候關(guān)不掉Word,已經(jīng)修復(fù)了。
            7.  HRESULT Caption([out,retval] BSTR* pbstr);
            屬性,獲取|設(shè)置窗口標(biāo)題
            8.  HRESULT Titlebar([in] boolean vbool);
               HRESULT Titlebar([out,retval] boolean* pbool);
               顯示或者隱藏標(biāo)題欄
            9. HRESULT Toolbars([in] boolean vbool);
              HRESULT Toolbars([out,retval] boolean* pbool);
               顯示或者隱藏工具欄
            10.  HRESULT ModalState([in] boolean vbool);
               HRESULT ModalState([out,retval] boolean* pbool);

            11.HRESULT ShowDialog([in] dsoShowDialogType DlgType);
              顯示對話框
            12.HRESULT EnableFileCommand([in] dsoFileCommandType Item, [in] boolean vbool);
              HRESULT EnableFileCommand([in] dsoFileCommandType Item, [out,retval] boolean* pbool);


            13.  HRESULT BorderStyle([in] dsoBorderStyle style);
              HRESULT BorderStyle([out, retval] dsoBorderStyle* pstyle);

            14.  HRESULT BorderColor([in] OLE_COLOR clr);
              HRESULT BorderColor([out,retval] OLE_COLOR* pclr);

            15. HRESULT BackColor([in] OLE_COLOR clr);
              HRESULT BackColor([out,retval] OLE_COLOR* pclr);

            16.HRESULT ForeColor([in]OLE_COLOR clr);
              HRESULT ForeColor([out,retval]OLE_COLOR* pclr);

            17.HRESULT TitlebarColor([in] OLE_COLOR clr);
             HRESULT TitlebarColor([out,retval] OLE_COLOR* pclr);

            18.HRESULT TitlebarTextColor([in] OLE_COLOR clr);
               HRESULT TitlebarTextColor([out,retval] OLE_COLOR* pclr);

            19.HRESULT ExecOleCommand([in] LONG OLECMDID, [in, optional] VARIANT Options, [in, optional] VARIANT* vInParam, [in, out, optional] VARIANT* vInOutParam);

            20.HRESULT Menubar([in] boolean vbool);
              HRESULT Menubar([out,retval] boolean* pbool);
            21.HRESULT HostName([in] BSTR bstr);
              HRESULT HostName([out,retval] BSTR* pbstr);
              
            22. HRESULT DocumentFullName([out,retval] BSTR* pbstr);
               文檔的路徑
            23.HRESULT PrintOut([in, optional] VARIANT PromptUser, [in, optional] VARIANT PrinterName, [in, optional] VARIANT Copies,
                [in, optional] VARIANT FromPage, [in, optional] VARIANT ToPage, [in, optional] VARIANT OutputFile);
            24.HRESULT PrintPreview();
              
            25.HRESULT PrintPreviewExit();
            26.HRESULT IsReadOnly([out,retval] boolean* pbool);
               是否為只讀的。
            27.HRESULT IsDirty([out,retval] boolean* pbool);
               是否保存了,實(shí)際可以用來判讀文檔有沒有修改
               oframer.IsDirty = TRUE //文檔沒有保存,處于修改狀態(tài)
                oframer.IsDirty = FALSE //文檔已經(jīng)保存,沒有修改
             

             

            posted @ 2006-02-20 16:59 昨日 閱讀(64340) | 評論 (255)編輯 收藏

            僅列出標(biāo)題  
            久久99国产精品99久久| 久久青青草原国产精品免费 | 久久精品三级视频| 94久久国产乱子伦精品免费 | 精品国产乱码久久久久久1区2区| 天堂久久天堂AV色综合| 国产精品久久国产精麻豆99网站| 88久久精品无码一区二区毛片 | 7777久久久国产精品消防器材| 欧美精品一区二区精品久久| 91久久成人免费| 四虎国产精品成人免费久久| 天天躁日日躁狠狠久久| 日韩精品国产自在久久现线拍 | 久久受www免费人成_看片中文| 精品多毛少妇人妻AV免费久久 | 久久久久久久国产免费看| 久久婷婷五月综合色奶水99啪| 欧美一区二区精品久久| 国产偷久久久精品专区| 久久久久久亚洲精品无码| 国产亚洲精品自在久久| 麻豆久久久9性大片| 九九久久精品无码专区| 国产精品美女久久久久网| 久久人与动人物a级毛片| 久久综合亚洲色HEZYO国产| 久久久精品午夜免费不卡| 久久精品中文闷骚内射| 久久久久久精品久久久久| 精品久久久久中文字幕一区| 国产精品视频久久久| 久久国产欧美日韩精品| 人妻精品久久久久中文字幕69| 久久国产影院| 久久久久国产亚洲AV麻豆| 国内精品伊人久久久久影院对白| 青青热久久综合网伊人| 99久久精品免费| 久久久久香蕉视频| 久久性生大片免费观看性|