• 大小: 19.96MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-07-03
  • 语言: C#
  • 标签: activex  

资源简介

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  ExamReportActivex\Bin\AxInterop.AcroPDFLib.dll

     文件      10752  2018-04-14 14:55  ExamReportActivex\Bin\AxInterop.APlayer3Lib.dll

     文件      12800  2018-07-04 19:53  ExamReportActivex\Bin\BobExamMgr.dll

     文件    3222016  2012-07-30 09:48  ExamReportActivex\Bin\DevComponents.DotNetBar2.dll

     文件      26624  2018-07-17 13:46  ExamReportActivex\Bin\EasyActivex.dll

     文件      56832  2018-07-17 13:46  ExamReportActivex\Bin\EasyActivex.pdb

     文件       3204  2018-07-17 13:46  ExamReportActivex\Bin\EasyActivex.tlb

     文件     268800  2018-09-12 14:24  ExamReportActivex\Bin\ExamReportActivex.dll

     文件      36352  2018-09-12 14:24  ExamReportActivex\Bin\ExamReportActivex.pdb

     文件       3660  2018-09-12 14:24  ExamReportActivex\Bin\ExamReportActivex.tlb

     文件      18944  2014-10-09 13:12  ExamReportActivex\Bin\IExamInterface.dll

     文件     488945  2018-04-13 16:26  ExamReportActivex\Bin\InitVideo.mp4

     文件     614716  2015-10-14 16:54  ExamReportActivex\Bin\InitVideo1.mp4

     文件      11776  2018-09-12 14:24  ExamReportActivex\Bin\Interop.AcroPDFLib.dll

     文件      24576  2018-04-14 14:55  ExamReportActivex\Bin\Interop.APlayer3Lib.dll

     文件    6123520  2012-03-02 23:30  ExamReportActivex\Bin\iTextAsian.dll

     文件    4767744  2005-11-03 16:01  ExamReportActivex\Bin\iTextAsianCmaps.dll

     文件    3989504  2014-05-20 10:26  ExamReportActivex\Bin\itextsharp.dll

     文件     513024  2018-03-24 17:40  ExamReportActivex\Bin\Newtonsoft.Json.dll

     文件      11264  2018-04-14 15:04  ExamReportActivex\Bin\VedioShow.dll

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

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

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

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

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

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

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

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

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

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

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

评论

共有 条评论