itextSharp 对pdf的每个页面添加footer/header
摘要:1 static void SetAllHeaderFooter(string inputPath) 2 { 3 4 PdfReader reader=new PdfReader(inputPath); 5 PdfStamper...
阅读全文
posted @
2014-06-28 12:55
极简
阅读(1452)
推荐(0) 编辑
itextSharp 使用模板(PdfTemplate)不规则分栏(ColumnText)
摘要:1 public static void Main() 2 { 3 4 Document document = new Document(); 5 BaseFont bf = BaseFont.createFont(Base...
阅读全文
posted @
2014-06-28 12:55
极简
阅读(527)
推荐(0) 编辑
wkhtmltopdf 生成pdf
摘要:1 public class PdfHelper 2 { 3 4 static string RootPath 5 { 6 get 7 { 8 string AppPat...
阅读全文
posted @
2014-06-28 12:55
极简
阅读(582)
推荐(0) 编辑
ean128与code128 条形码 算法分析
摘要:【code128条形码组成】除终止符(STOP)由13个模块组成外,其他字符均由11个模块组成就是说,如果用‘1’表示黑线(实模块),用‘0’表示白线(空模块),那么每表示一个字符就需要11条线,也就是11个模块。在条码字符中,每三个条和三个空组成一个字符,终止符有四个条和三个空组成。就是说,这11...
阅读全文
posted @
2014-06-28 12:54
极简
阅读(4508)
推荐(0) 编辑
SMTP命令 发送邮件 DOS命令
摘要:1.实例:从qq邮箱 发送到其他地址的邮箱>telnet smtp.qq.com 25>helo qq.com>auth login>NzI3MTU0MTg3QHFxLmNvbQ== (邮箱名的base64编码 http://tool.chinaz.com/Tools/base64.aspx)>。。...
阅读全文
posted @
2014-06-27 14:04
极简
阅读(3254)
推荐(0) 编辑
CodeFirst 表之间的关联
摘要:多重性关系可以是Optional(一个属性可拥有一个单个实例或没有)Required(一个属性必须拥有一个单个实例)Many很多的(一个属性可以拥有一个集合或一个单个实例)。Has方法包括如下几个:• HasOptional• HasRequired• HasMany在多数情况还需要在Has方法后面...
阅读全文
posted @
2014-06-27 14:03
极简
阅读(848)
推荐(0) 编辑
telerik 控件 SCRIPT5007: 无法获取未定义或 null 引用的属性“documentElement” (IE 文档模式)
摘要:IE对盒模型的渲染在 Standards Mode和Quirks Mode是有很大差别的,在Standards Mode下对于盒模型的解释和其他的标准浏览器是一样,但在Quirks Mode模式下则有很大差别,而在不声明Doctype的情况下,IE默认又是Quirks Mode。所以为兼容性考虑,我...
阅读全文
posted @
2014-06-27 14:02
极简
阅读(2068)
推荐(0) 编辑
NVelocity 实例
摘要:using System;using System.IO;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using Sy...
阅读全文
posted @
2014-06-27 14:00
极简
阅读(372)
推荐(0) 编辑
windows azure 实例
摘要:1 public class Album : TableServiceEntity 2 { 3 } 4 public class PhotoAlbumDataContext : TableServiceContext 5 { 6 pu...
阅读全文
posted @
2014-06-27 13:59
极简
阅读(418)
推荐(0) 编辑
isotope/masonry 使用jQuery.sortable
摘要:1 function goMasonry() { 2 // if ($container.data('masonry') != undefined) { 3 $container.isotope('destroy'...
阅读全文
posted @
2014-06-27 13:57
极简
阅读(395)
推荐(0) 编辑
复合文档的二进制存储格式研究[ole存储结构](word,xls,ppt...)[转]
摘要:复合文档文件格式研究前 言复合文档(Compound Document) 是一种不仅包含文本而且包括图形、电子表格数据、声音、视频图象以及其它信息的文档。可以把复合文档想象成一个所有者,它装着文本、图形以及多媒体信息如 声音和图象。目前建立复合文档的趋势是使用面向对象技术,在这里,非标准信息如图像和...
阅读全文
posted @
2014-06-26 21:03
极简
阅读(3966)
推荐(1) 编辑