随笔分类 -  每日一说

摘要:string.Format("Name:{{{0}}}","YeeYu");输出:Name:{YeeYu} 即, { 用 {{ } 用 }} 转义 阅读全文
posted @ 2014-12-17 15:39 人来人往
摘要:AcroExch.Rect 有四个属性:Top,Right,Left,Buttom1.单位:point,一般通过英寸换算,1point=1/72 inch(英寸)2.属性:Top: 区域距离 x 轴的距离,即Y轴值 ,而不是字面意思的顶部距离 (故当top=0,或 top <buttom 时,区域是... 阅读全文
posted @ 2014-11-13 11:01 人来人往 阅读(1057) 评论(0) 推荐(0)
摘要:GetSize:LPDISPATCH GetSize();Description:Gets a page’s width and height in points.Parameters:Return ValueThe LPDISPATCH for an AcroExch.Point containi... 阅读全文
posted @ 2014-11-12 17:23 人来人往 阅读(264) 评论(0) 推荐(0)
摘要:此问题不是网上说的 DisplayMember 等先后顺序问题,即使更换绑定数序,只是把错误覆盖而已(绑定的是对象的类名) ValueMember = "Id"; DisplayMember = "Name";问题是:你绑定的不是属性,而是字段。将要绑定的字段封装成属性即可 阅读全文
posted @ 2014-08-20 14:34 人来人往 阅读(2939) 评论(0) 推荐(0)
摘要:public static string StreamToString(Stream stream) { stream.Position = 0; using (StreamReader stremReader = new S... 阅读全文
posted @ 2014-08-11 14:02 人来人往 阅读(2279) 评论(0) 推荐(0)
摘要:用BindingList构造函数即可:var listFiles= new List();var listBindingFiles = new BindingList(listFiles); 阅读全文
posted @ 2014-08-07 11:35 人来人往 阅读(137) 评论(0) 推荐(0)
摘要:问题:Visual studio Installer 应用程序添加文件夹后,安装时不存在解决:在文件夹 属性 中,将AlwaysCreate设为 true 阅读全文
posted @ 2014-08-06 16:55 人来人往 阅读(1654) 评论(0) 推荐(0)
摘要:public static string[] DateFormats { get { return new string[] {"M/dd/yy HH:mm", "dd/MM/yyyy", "d... 阅读全文
posted @ 2014-08-06 16:33 人来人往 阅读(571) 评论(0) 推荐(0)
摘要:从excel读取数据,日期格式有可能变成 double 类型【实际是计算(1899 年 12 月 30 日午夜)之前或之后的天数】此时必须通过DateTime.FromOADate 来转 阅读全文
posted @ 2014-08-05 16:41 人来人往 阅读(1676) 评论(0) 推荐(0)