如何将带有数据的精确静态页面导出到c#中的pdf .... [英] how to export exact static page with data to pdf in c#....

查看:58
本文介绍了如何将带有数据的精确静态页面导出到c#中的pdf ....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个20 .aspx报告页面....我需要将确切的aspx页面转换为pdf ...



我怎样才能实现这个目标..





请帮帮我

i have a 20 .aspx report page is there....i need to convert exact aspx page to pdf...

how can i achieve this..


please help me

推荐答案

使用下面的代码,



Use below code,

Me.EnableViewState = False
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "attachments;filename=XXXXXXX.pdf")
Response.Buffer = True
Response.BufferOutput = True


这篇关于如何将带有数据的精确静态页面导出到c#中的pdf ....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆