c#实现手写软签名


c#写的activex控件,可用ie加载,可实软签名,使用模板打印表单
资源截图
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using mshtml;
using System.Reflection;
using System.Drawing.Imaging;
using IDR210_IDCard;

namespace EasyActivex
{
    [Guid(“685F0A47-944D-4145-BF4E-76A02A422B03“)]
    public partial class EUserControl : UserControl IobjectSafety
    {

        #region 变量定义

        bool bInit = false;//判断界面是否初始化显示 

        private IHTMLWindow2 window2;
        private IHTMLDocument2 document2;
        private IHTMLDocument3 document3;

        //object result = this.RunJs(“startExam“ kcbh);调用js函数

        bool bSaveKm2Pdf = false;
        bool bSaveKm3Pdf = false;
        string km2filename = @“c:/kemu2cjd.pdf“;
        string km2TempletFilename = @“c:/kemu2.pdf“;
        string km3filename = @“c:/kemu3cjd.pdf“;
        string km3TempletFilename = @“c:/kemu3.pdf“;

        IDR210_IDCardReader idrReader;
        int mReadCarTicks = 0;

        #endregion



        public EUserControl()
        {
            InitializeComponent();

            System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;//设置该属性 为false多线程访问控件

            //timer1.Interval = 1000;
            //timer1.Enabled = true;
            //timer1.Start();
            this.pictureBox1.Paint += pictureBox1_Paint;  // 可以移动到设计器生成代码里
           

        }
        #region IobjectSafety 成员

        private const string _IID_IDispatch = “{00020400-0000-0000-C000-000000000046}“;
        private const string _IID_IDispatchEx = “{a6ef9860-c720-11d0-9337-00a0c90dcaa9}“;
        private const string _IID_IPersistStorage = “{0000010A-0000-0000-C000-000000000046}“;
        private const string _IID_IPersistStream = “{00000109-0000-0000-C000-000000000046}“;
        private const string _IID_IPersistPropertyBag = “{37D84F60-42CB-11CE-8135-00AA004BB851}“;

        private const int INTERFACESAFE_FOR_UNTRUSTED_CALLER = 0x00000001;
        private const int INTERFACESAFE_FOR_UNTRUSTED_DATA = 0x00000002;
        private const int S_OK = 0;
        private const int E_FAIL = unchecked((int)0x80004005);
        private const int E_NOINTERFACE = unchecked((int)0x80004002);

        private bool _fSafeForscripting = true;
        private bool _fSafeForInitializing = true;

        public int GetInterfaceSafetyOptions(ref Guid riid ref int pdwSupportedOptions ref int pdwEnabledOptions)
        {
            int Rslt = E_FAIL;

            string strGUID = riid.ToString(“B“);
            pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA;
            switch (strGUID)
            {
                case _IID_IDispatch:
                case _IID_IDispatchEx:
                    Rslt = S_OK;
                    p

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8192  2018-09-12 14:24  ExamReportActivexBinAxInterop.AcroPDFLib.dll

     文件      10752  2018-04-14 14:55  ExamReportActivexBinAxInterop.APlayer3Lib.dll

     文件      12800  2018-07-04 19:53  ExamReportActivexBinBobExamMgr.dll

     文件    3222016  2012-07-30 09:48  ExamReportActivexBinDevComponents.DotNetBar2.dll

     文件      26624  2018-07-17 13:46  ExamReportActivexBinEasyActivex.dll

     文件      56832  2018-07-17 13:46  ExamReportActivexBinEasyActivex.pdb

     文件       3204  2018-07-17 13:46  ExamReportActivexBinEasyActivex.tlb

     文件     268800  2018-09-12 14:24  ExamReportActivexBinExamReportActivex.dll

     文件      36352  2018-09-12 14:24  ExamReportActivexBinExamReportActivex.pdb

     文件       3660  2018-09-12 14:24  ExamReportActivexBinExamReportActivex.tlb

     文件      18944  2014-10-09 13:12  ExamReportActivexBinIExamInterface.dll

     文件     488945  2018-04-13 16:26  ExamReportActivexBinInitVideo.mp4

     文件     614716  2015-10-14 16:54  ExamReportActivexBinInitVideo1.mp4

     文件      11776  2018-09-12 14:24  ExamReportActivexBinInterop.AcroPDFLib.dll

     文件      24576  2018-04-14 14:55  ExamReportActivexBinInterop.APlayer3Lib.dll

     文件    6123520  2012-03-02 23:30  ExamReportActivexBiniTextAsian.dll

     文件    4767744  2005-11-03 16:01  ExamReportActivexBiniTextAsianCmaps.dll

     文件    3989504  2014-05-20 10:26  ExamReportActivexBinitextsharp.dll

     文件     513024  2018-03-24 17:40  ExamReportActivexBinNewtonsoft.Json.dll

     文件      11264  2018-04-14 15:04  ExamReportActivexBinVedioShow.dll

     文件         95  2013-06-21 08:59  ExamReportActivexCab打包和签名工具Cab打包工具uild.bat

     文件      70656  2003-04-18 16:20  ExamReportActivexCab打包和签名工具Cab打包工具cabarc.exe

     文件     163156  2013-06-21 09:00  ExamReportActivexCab打包和签名工具Cab打包工具EasyActivex.cab

     文件     445952  2013-06-21 09:00  ExamReportActivexCab打包和签名工具Cab打包工具EasySetup.msi

     文件        181  2013-06-21 08:58  ExamReportActivexCab打包和签名工具Cab打包工具install.inf

     文件      12800  2013-06-14 15:01  ExamReportActivexCab打包和签名工具签名工具ActivexVB.dll

     文件       7440  1998-10-27 14:33  ExamReportActivexCab打包和签名工具签名工具cert2spc.exe

     文件      59664  1998-10-27 14:33  ExamReportActivexCab打包和签名工具签名工具certmgr.exe

     文件      15632  1998-10-27 14:33  ExamReportActivexCab打包和签名工具签名工具chktrust.exe

     文件      14608  1998-10-27 14:33  ExamReportActivexCab打包和签名工具签名工具makecat.exe

............此处省略129个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)