随笔分类 -  第三方控件

第三方控件
摘要:1.下载swig https://sourceforge.net/projects/swig/files/ 2.配置环境变量 path 添加你的swig路径 3.创建项目解决方案和一个win32 dll 和c# 控制台程序 4.修改cpp类 5.在SwigC 下面添加SwigC.i 和 SwigC. 阅读全文
posted @ 2019-07-16 16:46 sulin 阅读(1243) 评论(0) 推荐(0)
摘要:1.安装npm gulp相关插件 比如:gulp、gulp-concat、gulp-htmlmin、gulp-cssmin、gulp-cheerio、gulp-clean 2. 编写gulpfile.js 3.执行gulp build 命令 4.预览页面 (通过IIS访问) http://192.1 阅读全文
posted @ 2019-04-18 16:28 sulin 阅读(677) 评论(0) 推荐(0)
摘要:1.安装需要插件 npm install express npm install socket.io npm install kafka-node 2.kafkatest.js文件 3.counter.html 3.效果展示 启动 kafkatest.js 打开http://localhost:80 阅读全文
posted @ 2018-12-29 16:48 sulin 阅读(616) 评论(0) 推荐(0)
摘要:1.准备工作 1.1 java环境 1.2 下载并解压到D:\zookeeper-3.4.13 下载并解压到 D:\kafka_2.12-2.1.0 2.安装zookeeper 、kafka 我安装在d盘根目录下 2.1 D:\zookeeper-3.4.13\conf => zoo_sample. 阅读全文
posted @ 2018-12-28 15:34 sulin 阅读(202) 评论(0) 推荐(0)
摘要:1.导出excel行显示不完整数据客户不满意,需要我们处理 备注:比较索引为6,21 的列,判断设置行高的标准 阅读全文
posted @ 2018-03-01 14:20 sulin 阅读(277) 评论(0) 推荐(0)
摘要:1.现在elasticsearch安装包 https://www.elastic.co/downloads/elasticsearch 2.解压elasticsearch-5.6.4.zip 到需要安装目录,我的在F:\Program Files\elasticsearch cmd 切换到elast 阅读全文
posted @ 2017-11-15 09:43 sulin 阅读(5557) 评论(0) 推荐(1)
摘要:1.添加js引用 <script src="JS/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="JS/ajaxfileupload.js" type="text/javascript"></script> 2.h 阅读全文
posted @ 2017-09-11 14:53 sulin 阅读(489) 评论(0) 推荐(0)
摘要:1·.效果图 2.导出触发事件源 1 string fileName = System.Web.HttpUtility.UrlEncode(name + ".xls"); 2 context.Response.ContentType = "application/vnd.ms-excel"; 3 c 阅读全文
posted @ 2017-08-23 14:51 sulin 阅读(213) 评论(0) 推荐(0)
摘要:1.采用 Web API Help Page 显示效果 2.swaggerui 创建文档接口 效果图 3.swagger ui 安装配置 nuget 安装 2.设置xml文件 3.配置根路径 预览swagger ui http://localhost:32033/swaggerui/index.ht 阅读全文
posted @ 2016-08-08 14:56 sulin 阅读(2722) 评论(0) 推荐(0)
摘要:1.添加引用dllusing Lucene.Net.Search;using Lucene.Net.Analysis.PanGu;using PanGu;using PanGu.HighLight;using Lucene.Net.Documents;using Lucene.Net.Store;u... 阅读全文
posted @ 2015-11-05 15:03 sulin 阅读(207) 评论(0) 推荐(0)
摘要:1.引用js文件2.主体部分$(function () { $(document).ready(function () { // Build the chart $('#container').highcharts({ chart: { ... 阅读全文
posted @ 2015-08-10 13:17 sulin 阅读(4821) 评论(1) 推荐(0)
摘要:1 .NPOI 版本2.12. NPOI 读取execl3.导入数据(SqlBulkCopy)示例代码: 1 public class ImportServerData 2 { 3 4 DataTable dt_ItemInfo = new DataTable();... 阅读全文
posted @ 2015-07-21 14:32 sulin 阅读(345) 评论(0) 推荐(0)
摘要:1 /// 2 /// 生产word 文档 3 /// 4 public class GenerateWord 5 { 6 /// 7 ///模板地址 8 /// 9 p... 阅读全文
posted @ 2015-06-29 16:30 sulin 阅读(824) 评论(0) 推荐(1)
摘要:1.生成word代码 1 /// 2 /// 生成word文档 3 /// 4 /// 模板绝对路径 5 /// 模板保存路径(包含文件名称 后缀必须是docx) 6 ... 阅读全文
posted @ 2015-04-28 10:13 sulin 阅读(737) 评论(0) 推荐(0)
摘要:1.下载需要文件包:http://xheditor.com/2.解压文件中文件 xheditor-zh-cn.min.js以及xheditor_emot、xheditor_plugins和xheditor_skin三个文件夹到网站相应文件夹中3.引入相关文件4.调用方式示例:直接添加class 属性... 阅读全文
posted @ 2015-03-27 17:22 sulin 阅读(926) 评论(0) 推荐(0)
摘要:1 效果图2.代码引用组件:using iTextSharp.text;using iTextSharp.text.pdf;using System;using System.Data;using System.IO;using System.Text;using System.Xml;示例: /// /// 利用itextsharp 创建一个简单pdf文件 /// private static void GetCreateDocumentPDF() { //开始创建PDF文档 Docume... 阅读全文
posted @ 2014-01-21 14:44 sulin 阅读(367) 评论(0) 推荐(0)
摘要:1 应用组件using NPOI.SS.UserModel;using NPOI.HSSF.Util;2.一个简单demo2.1 定义单元格常用到样式的枚举 public enum stylexls { shead,//头 surl, sdate,//时间 snumber,//数字 smoney,//钱 spercentage,//百分比 schinaUpper,//中文大写 scientific,//科学... 阅读全文
posted @ 2014-01-17 10:09 sulin 阅读(552) 评论(0) 推荐(0)
摘要:1.采用发送一个简单邮件示例: 1 private int smtpPort; 2 private string smtpHost; 3 private int recieveTimeout; 4 private int sendTimeout; 5 6 private string subject; 7 private string body; 8 private StringBuilder htmlBody; 9 10 private Smtp smtp;11 ... 阅读全文
posted @ 2013-12-04 17:42 sulin 阅读(423) 评论(0) 推荐(0)
摘要:1.Ionic.zIP 实现文件压缩和解压2.压缩: /// /// 压缩文件 /// /// 压缩文件目录 /// 压缩文件名称 /// 需要添加到压缩文件的目录 物理路径 /// 需要添加到压缩文件的文件 物理路径 /// 是否成功 /// /// CompZipFiles(@"E:\\zipfile",DateTime.Now.ToString("yyMMddHHmmssff") + ".zip",@"E:\\testzip",new string[]{@"E:\\crebas.sql"} 阅读全文
posted @ 2013-12-02 11:28 sulin 阅读(1775) 评论(0) 推荐(0)
摘要:1.引用对应log4net.dll2.创建对应的log4net.config 文件示例:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections> < 阅读全文
posted @ 2013-05-14 18:29 sulin 阅读(384) 评论(0) 推荐(0)