using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace E_Print { /// <summary> /// 接口抽象基类 /// </summary> [ComImport, GuidAttribute("CBBDC-C-CF-F-FCD")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] public interface IObjectSafety { [PreserveSig] int GetInterfaceSafetyOptions(ref Guid riid, [MarshalAs(UnmanagedType.U)] ref int pdwSupportedOptions, [MarshalAs(UnmanagedType.U)] ref int pdwEnabledOptions); [PreserveSig()] int SetInterfaceSafetyOptions(ref Guid riid, [MarshalAs(UnmanagedType.U)] int dwOptionSetMask, [MarshalAs(UnmanagedType.U)] int dwEnabledOptions); } }
6、预览效果
7、我们可以通过源码中的 EPrintTest.exe 打印Winform 实例 ,来执行示范,
通过WEB前端js 生成打印的TABLE的 RptData.xml格式 数据,在WINForm中直接使用
如果在网页中,通过JS 直接传给打印控件就OK
您可能感兴趣的文章: