header header("Content-Type:application/vnd.ms-excel");
header("Content-Disposition:attachment;filename=sample.xls");
header("Pragma:no-cache");
header("Expires:0"); 2.PHPExcel http://www.codeplex....
分类:
Web程序 时间:
2015-02-03 23:13:37
阅读次数:
593
http://dl.iteye.com/upload/attachment/0083/1197/ea094ad9-efc5-337d-a8e8-ce9223511144.jpg其实每个模式名称就表明了该模式的作用,代理模式就是多一个代理类出来,替原对象进行一些操作,比如我们在租房子的时候回去找中介,...
分类:
其他好文 时间:
2015-02-02 15:45:11
阅读次数:
131
论坛帖子列表页调用帖子摘要使用G变量无法获取,网上找到的解决方案 与大家分享//内容摘要 include_once libfile('function/post'); include_once libfile('function/attachment'); ...
分类:
Web程序 时间:
2015-01-28 12:29:52
阅读次数:
1388
response.reset(); response.setContentType("octets/stream"); response.addHeader("Content-Disposition","attachment;filename=test.xls"); Output...
分类:
Web程序 时间:
2015-01-26 18:51:35
阅读次数:
180
项目需求:定时的发送邮件,于是学习了如何发送邮件 下面有一个简单的例子。能够实现简单的发送邮件,加上附件可以添加一个属性【Attachment】,然后配置上附件的路径 Demo下载 代码总共只有一下这一些,就可以发送邮件。 using System;
using System.Collections...
ds为数据源Response.Buffer = true; Response.AppendHeader("Content-Disposition", "attachment;filename=" + FileName);//文件名Response.ContentType = "application...
分类:
Web程序 时间:
2015-01-23 18:03:47
阅读次数:
146
1、Struts2 配置
application/vnd.ms-excel
attachment;filename="${downloadFileName}"
excelFile
2、BaseAction
//导出
protected InputStream excelFile;
pro...
分类:
其他好文 时间:
2015-01-20 18:03:10
阅读次数:
183
当使用c#自带的MailMessage类发送excel附件时,再次打开excel会提示处于锁定状态。解决思路:Attachment是添加附件的类,邮件发送后没有释放该类public string SendSmtpeMail(string strSmtpServer, string strFrom, ...
background-position 属性设置背景图像的起始位置。
这个属性设置背景原图像(由 background-image 定义)的位置,背景图像如果要重复,将从这一点开始。
提示:您需要把 background-attachment 属性设置为 "fixed",才能保证该属性在 Firefox 和 Opera 中正常工作。
默认值: 0% 0%
继承性: no
版本: CS...
分类:
Web程序 时间:
2015-01-10 01:17:28
阅读次数:
505
string fileName="",filePath="";.....Response.Clear(); Response.Buffer = true;Response.AddHeader("Content-Disposition", "attachment;filename=" + fileNa...
分类:
其他好文 时间:
2015-01-09 13:58:56
阅读次数:
152