摘要: install-package PdfSharp -v 1.51.5185-beta阅读全文
posted @ 2019-07-04 16:17 Fred1987 阅读(36) 评论(0) 编辑
摘要: Nuget install iText7 using iText.Kernel.Pdf; using iText.Kernel.Utils;using System;using System.Collections.Generic; namespace ConsoleApp1{ public cla阅读全文
posted @ 2019-07-01 19:37 Fred1987 阅读(42) 评论(0) 编辑
摘要: using System.IO; using System.Drawing; using System.Drawing.Imaging; using System.Threading; using System.Windows.Forms; using System; namespace ConsoleApp1 { public class CaptureWebPage { ...阅读全文
posted @ 2019-07-01 19:34 Fred1987 阅读(158) 评论(0) 编辑
摘要: http://mtoou.info/cipanbeixiebaohu/index.html ①打开运行(快捷键Win+R)→输入regedit后回车 ②找到这个目录:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePo阅读全文
posted @ 2019-06-21 23:57 Fred1987 阅读(30) 评论(0) 编辑
摘要: public class DelCmd : ICommand { private readonly Predicate<object> _canExecute; private readonly Action<object> _execute; public event EventHandler C阅读全文
posted @ 2019-06-10 13:28 Fred1987 阅读(57) 评论(0) 编辑
摘要: System.Windows.Application is a singleton: its constructor must only be invoked once (including App.xaml de-xamlization), or exception is thrown.阅读全文
posted @ 2019-06-08 15:24 Fred1987 阅读(9) 评论(0) 编辑
摘要: 1.Install-Package NPOI -v 2.4.0 2. 3.让Excel单元格自适应单元格大小 for(int i=0;i<dt.Columns.Count;i++) { firstSheet.AutoSizeColumn(i); } 最后效果:阅读全文
posted @ 2019-06-05 19:43 Fred1987 阅读(133) 评论(0) 编辑
摘要: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IGetDataTable" messageEncoding="Text" maxReceivedMessageSize="2147阅读全文
posted @ 2019-06-04 09:47 Fred1987 阅读(42) 评论(0) 编辑
摘要: 第一种1.git add --ignore-errors . 特别注意 git add --ignore-errors . errors后面有一个空格再加一个点' .' 第二种: 1.touch .gitignore; 2.添加要省略的文件 .vs/阅读全文
posted @ 2019-05-28 00:49 Fred1987 阅读(91) 评论(0) 编辑
摘要: static void GenerateMD5ForLargeFiles(string fileName) { StringBuilder stringBuilder = new StringBuilder(); using (Stream readStream = File.OpenRead(fi阅读全文
posted @ 2019-05-22 00:34 Fred1987 阅读(27) 评论(0) 编辑