上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 借用NPOI来实现,要在同一Excel文件中创建多个sheet,只需要在同一个workbook中创建多个sheet即可。要注意的是,sheet的名字一定不能重复。下面是实现的代码: private void buttonTest_Click(object sender, EventArgs e) { 阅读全文
posted @ 2021-04-20 11:45 恋上微笑的天使 阅读(1410) 评论(0) 推荐(0)
摘要: 获取有效位数,当是小数时可以使用; /// <summary> /// 小数获取有效位数 /// </summary> /// <param name="dvalue">数值</param> /// <param name="digit">位数</param> /// <returns>返回值</r 阅读全文
posted @ 2020-12-22 10:04 恋上微笑的天使 阅读(215) 评论(0) 推荐(0)
摘要: 十进制数字转换成罗马数字 public string IntToRoman(int num) { string res = String.Empty; List<int> val = new List<int> { 1000, 900, 500, 400, 100, 90, 50, 40, 10, 阅读全文
posted @ 2020-12-11 17:57 恋上微笑的天使 阅读(198) 评论(0) 推荐(0)
摘要: 效果不太好,需再进行加工 // 选择文件文件对话框 OpenFileDialog dialog = new OpenFileDialog(); //是否支持多个文件的打开? dialog.Multiselect = false; //标题 dialog.Title = "请选择图片"; //文件类型 阅读全文
posted @ 2020-11-20 17:34 恋上微笑的天使 阅读(540) 评论(0) 推荐(0)
摘要: 1、引用Spire第三方插件Spire.License、Spire.Pdf,有免费版和收费版选适合自己的; 2、Spire官网有demo,研究下改改上,代码: 根据网上搜集的列子整理的示例 /// <summary> /// 添加图片印章 /// </summary> /// <param name 阅读全文
posted @ 2020-11-20 16:26 恋上微笑的天使 阅读(731) 评论(0) 推荐(0)
摘要: string path = @"D:\我的文件\test.pdf"; webBrowser1.Navigate(path); 阅读全文
posted @ 2020-11-14 09:17 恋上微笑的天使 阅读(747) 评论(0) 推荐(0)
摘要: private string getinfo(string zjhm,string slid) { //string abc = @"{""zjhm"":""123456"",""slid"":""2010001""}"; //string abc = @"{""zjhm"":""" + zjhm 阅读全文
posted @ 2020-11-04 10:40 恋上微笑的天使 阅读(90) 评论(0) 推荐(0)
摘要: 方法一: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Web.Services.Description; usi 阅读全文
posted @ 2020-11-03 15:07 恋上微笑的天使 阅读(525) 评论(0) 推荐(0)
摘要: public class Webservice { /// <summary> /// 实例化WebServices /// </summary> /// <param name="url">WebServices地址</param> /// <param name="methodname">调用的 阅读全文
posted @ 2020-10-31 11:46 恋上微笑的天使 阅读(2136) 评论(0) 推荐(0)
摘要: 基本数据类型 数据类型 数据类型简写 标准命名举例 Array arr arrShoppingList Boolean bln blnIsPostBack Byte byt bytPixelValue Char chr chrDelimiter DateTime dtm dtmStartDate D 阅读全文
posted @ 2020-09-22 08:35 恋上微笑的天使 阅读(528) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页