摘要: 1 static void BuildBarcode()2 {3 System.Drawing.Image image;4 int width=250, height=100;5 byte[] buffer = GetBarcode(height, width, 6 BarcodeLib.TYPE.CODE128, "Avx-(13614)-vR", out image);7 } 1 static byte[] GetBarcode(int he... 阅读全文
posted @ 2012-11-16 21:36 极简 阅读(9823) 评论(6) 推荐(2)
摘要: 使用Adobe acrobat Pro先手工做一个Pdf Form的模板:1.新建:,选择新建/Pdf form file(Ctrl+N), 可以选择先有的某些类型的文件作为最处的模板,选择一个文件后(例如.txt的),就新建好了.2.编辑:选择右边的工具栏,选择Content/Edit Docum... 阅读全文
posted @ 2012-11-16 21:36 极简 阅读(1365) 评论(1) 推荐(1)
摘要: 1 static void Main(string[] args) 2 { 3 //CreatePDF 4 string name=Guid.NewGuid().ToString("N"); 5 Doc... 阅读全文
posted @ 2012-11-16 21:35 极简 阅读(724) 评论(0) 推荐(0)
摘要: A.dynamic 1 public class dynamicDemo 2 { 3 public static void Test() 4 { 5 dynamic d = 100; 6 d += 10; 7 Console.WriteLine(d.GetType()+" +=10 Result:\t"+d); 8 d = 1.200; 9 d += 10;10 Console.WriteLine(d.GetType() + " +=10 Resul... 阅读全文
posted @ 2012-11-16 21:35 极简 阅读(236) 评论(0) 推荐(0)
摘要: 程序集1 using System.IO;2 using System.Data;3 using System.Data.OleDb;4 using System.Data.Odbc;导入[.xls|.xlsx] 1 public static DataTable FromExceFile(string pathName) 2 { 3 DataSet ds = new DataSet(); 4 try 5 { 6 7 FileInfo file = new FileInf... 阅读全文
posted @ 2012-11-16 21:34 极简 阅读(1280) 评论(0) 推荐(0)
摘要: Image To byte[]1 //image to byte[]2 static byte[] Image2Bytes(System.Drawing.Image photo)3 {4 //System.Drawing.Image photo = new System.Drawing.Bitmap(path);5 System.IO.MemoryStream ms = new System.IO.MemoryStream();6 photo.Save(ms, System.Drawin... 阅读全文
posted @ 2012-11-16 21:34 极简 阅读(628) 评论(0) 推荐(0)