2011年7月8日

asp生成PDF不使用插件

摘要: using System.IO;using System.Text ;public partial class Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } static float pageWidth = 594.0f; static float pageDepth = 828.0f; static float pageMargin = 30.0f; static float fontSize = 20.0f; static float leadSize = 10 阅读全文

posted @ 2011-07-08 14:20 缘来 阅读(1122) 评论(0) 推荐(0)

Asp.net 生成PDF

摘要: using System.IO;using iTextSharp.text.pdf;using iTextSharp.text;using iTextSharp.text.html.simpleparser;using System.Text;public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } //iTextsharp 给PDF文件添加水印,是通过 PdfWriter 的 PageEvent 事件来处理的,此事件,需要继承 Pd 阅读全文

posted @ 2011-07-08 14:14 缘来 阅读(789) 评论(0) 推荐(0)

asp.net 模板生成Excel

摘要: using Microsoft.Office.Interop.Excel;using System.Reflection;using System.Diagnostics;using Microsoft.Win32;using System.IO; protected void Button1_Click(object sender, EventArgs e) { //建立一个Excel.Application的新进程 Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Appl 阅读全文

posted @ 2011-07-08 13:49 缘来 阅读(1149) 评论(2) 推荐(0)

导航