摘要: 将图片转成数据流方式发送到远程服务,在通过服务器后台程序来接收数据流,再保存成图片存放在需要的地方。这种方式就类似上传图片功能一样,希望能给一些园友另一种上传图片功能的方法。发送数据流方法 /// <summary> /// PostBinaryData /// </summary> /// <param name="url">要发送的 url 网址</param> /// <param name="bytes">要发送的数据流</param> /// <returns> 阅读全文
posted @ 2012-09-20 14:42 jwang 阅读(1959) 评论(3) 推荐(0) 编辑
摘要: 在生成PDF 的时候,虽然可以在页面中设置背景图。但有些内容过长夸页面的时候,就很难设置背景图,变成了空白背景的页面!以下是重新生成每一页 PDF 背景图功能代码! public void SetPdfBackground(string pdfFilePath) { //重新生成的 PDF 的路径 string destFile = HttpContext.Current.Server.MapPath("sample.pdf"); //create new pdf document FileStream stream = n... 阅读全文
posted @ 2012-08-27 17:32 jwang 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: 最近要制作 asp.net 生成 PDF 项目,在网上找一些相关资料发现iTextSharp 这个 dll 生成PDF 还是不错的,在开发中遇到很多问题,在网上也找了不少的资料,在这汇总了一个知识点,在关键的地方做了一些注释希望能给园里的朋友带来一些帮助。using System;using System.Web;using System.IO;using iTextSharp.text;using iTextSharp.text.pdf;public class Pdf : IHttpHandler{ public void ProcessRequest(HttpContext con... 阅读全文
posted @ 2012-08-27 17:06 jwang 阅读(2971) 评论(8) 推荐(2) 编辑
摘要: IL/MSIL (Microsoft Intermediate Language) 微软中间语言 (IL是MSIL的缩写,译为中间语言)CTS (Common Type System)通用类型系统CLS(Common Language Specification)公共语言规范CLR(Common Language Runtime)公共语言运行时(也有的叫公共语言运行库)JIT (Just in time)即时编译器 阅读全文
posted @ 2012-07-11 10:35 jwang 阅读(740) 评论(0) 推荐(0) 编辑