尝试将网页转换为pdf格式 [英] Trying to convert a webpage into pdf format

查看:86
本文介绍了尝试将网页转换为pdf格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试实现一个网页.该页面显示了gridview和一个名为generate pdf的按钮.我想知道如何执行以下操作
每当我点击按钮时,都会生成该表格的pdf格式...请帮助

我已经在
找到了解决方案 http://aspdotnetcodebook.blogspot.com/2009/04/how-to-convert-web-page-to-pdf.html
但是不能在button1_click

Hi,
I am trying to implement a web page..The page is showing a gridview and a button called generate pdf.I want to know how can i do the following
whenever i''ll click into the button it will generate a pdf format of that table...Plz help

I''ve find a solution regarding this in
http://aspdotnetcodebook.blogspot.com/2009/04/how-to-convert-web-page-to-pdf.html
But can''t implement it inside button1_click

推荐答案

内实现它.您可以使用Open Source iSharpText(iText的.NET端口).参见:
http://en.wikipedia.org/wiki/IText [ http://itextpdf.com/ [ ^ ],
http://sourceforge.net/projects/itextsharp/ [
You can use Open Source iSharpText, a .NET port of iText. See:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^] (you can download iTextSharp here).

—SA



这可能对您有帮助

使用ASP.NET从HTML页面生成PDF文档 [
Hi
This may be help you

Generate PDF documents from a HTML page using ASP.NET[^]


尝试wkhtmltopdf

http://code.google.com/p/wkhtmltopdf/ [
Try wkhtmltopdf

http://code.google.com/p/wkhtmltopdf/[^]


这篇关于尝试将网页转换为pdf格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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