生成PDF文档
2024-08-30 13:13:39
byte[] buffer =
context.Response.Clear();
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.ContentType = "application/pdf";
context.Response.AppendHeader("Content-Disposition", String.Format("inline; filename=xxxx{0}.pdf", DateTime.Now.ToString("yyyyMMddhhmmss", System.Globalization.CultureInfo.InvariantCulture)));
if (buffer != null)
{
context.Response.BinaryWrite(buffer);
}
context.Response.End();
最新文章
- 简单轮播js实现
- .NET中那些所谓的新语法之二:匿名类、匿名方法与扩展方法
- Web安全--XSS模版
- 栈的简单应用 HDU 1022 http://acm.hdu.edu.cn/showproblem.php?pid=1022
- python learning_curve函数
- 营配数据质量核查,关于营销mis系统与配电gis系统里面的sql语句查询,做为积累使用,下次就不用重复写同样的语句了。
- Swift和OC混编时, 关于@objc的作用
- hdu 4841 圆桌问题(STL vector)
- js中的一元运算符
- MYSQL数据库学习十三 使用MySQL常用函数
- python+pycahrm+windows环境准备
- C#之Redis所欲为
- vue的父子组件间的相互传参props及props数据的多种验证机制
- Node.js基础学习一之Get请求
- rm:删除目录和文件
- 【转载】Yui.Compressor高性能ASP.NET开发:自动压缩CSS、JS
- HBase学习之路 (三)HBase集群Shell操作
- jsp地址栏传中文显示乱码解决方法
- BZOJ 3053: The Closest M Points(K-D Tree)
- 虚拟机下安装centos7方法,修改系统语言为简体中文的方法