使用自定义数据(html表)生成报表,而不是数据集 [英] Generating reports using custom data (html table) not dataset

查看:284
本文介绍了使用自定义数据(html表)生成报表,而不是数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个网站上阅读了几篇文章,还有很多其他人推荐了各种报表生成工具,但都使用数据集作为数据源。



这不是我的要求! / p>

我需要一些方法来导出mypage.aspx中htmltable中显示的数据。




  • 用户点击查看记录

  • 一个pdf打开(它应该包含动态制作的html表的数据)



帮助请



使用htmltable作为数据源生成pdf,并在其中显示aa pdf文档浏览器,但不必将结果保存到Web服务器

解决方案

您可以查看<一个href =http://sourceforge.net/projects/itextsharp/ =nofollow noreferrer> iTextSharp ,这里是一个教程如何开始。还有一个文档中的部分,说明如何创建表格PDF文件。


I read several articles on this site and many others recommending report generating tools of various kinds but all use dataset as there datasource.

This is not my requirement!

I need some way to export the data which is displayed in the htmltable on mypage.aspx.

  • user clicks view record
  • a pdf opens (it should contain the data of the html table which is made dynamically)

Help please

"generating pdf on the fly using a htmltable as a source of data and displaying it a a pdf doc in the browser but not having to save the result to the webserver

解决方案

You may take a look at iTextSharp and here's a tutorial on how to get started. There's also a section in the documentation which illustrates how to create tables in PDF documents.

这篇关于使用自定义数据(html表)生成报表,而不是数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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