2011年6月20日
摘要: 在我们的系统的编写过程中,应该有很多的时候需要客户下载文件.我第一次的做法(应该也是大部分人的做法吧?)是:1 HttpResponse response = HttpContext.Current.Response;2 string js = "<script language=javascript>window.open('{0}');</script>";3 js = string.Format(js, url);4 response.Write(js);5 但是有个问题了,就是会被广告拦截软件直接拦截掉,另我非常的头痛,于是寻 阅读全文
posted @ 2011-06-20 17:01 carekee 阅读(787) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using System.IO;namespace Microsoft.Form.Base{ class ImageToByte { /// <summary> /// 图片转换成字节流 /// </summary> /// <param name="img">要转换的Image对象</param> /// <retu 阅读全文
posted @ 2011-06-20 14:43 carekee 阅读(1124) 评论(0) 推荐(1)
摘要: using System;using System.Collections.Generic;using System.Text;using Microsoft.Office.Interop.Word;using System.IO;using System.Web;using System.Data;using System.Reflection;using Microsoft.Win32;using System.Text.RegularExpressions;using System.Net;namespace OfficeOperate{ public class WordOperate 阅读全文
posted @ 2011-06-20 14:42 carekee 阅读(856) 评论(0) 推荐(0)