简体   繁体   English

如何在extjs中将图表表格数据导出为PDF?

[英]How to export chart table data to PDF in extjs?

I try to export my chart table data from DB but have no idea how to export PDF. 我尝试从数据库导出图表表数据,但不知道如何导出PDF。 Have any suggestion use to export chart table data by using existing extjs information to PDF file? 通过将现有的extjs信息导出到PDF文件,有什么建议可用来导出图表表数据? Urgent..! 紧急..!

I don't think extjs has anything built-in to create pdfs. 我不认为extjs可以内置任何东西来创建pdf。 So you will either need to create it on the server or maybe you can use a client side js libary for pdf generation (eg http://code.google.com/p/jspdf/ ) 因此,您要么需要在服务器上创建它,要么可以使用客户端js库来生成pdf(例如http://code.google.com/p/jspdf/

Generally, you would need your server to assist with this. 通常,您需要服务器来协助完成此任务。 What kind of server do you use? 您使用哪种服务器?

Otherwise, you could try https://github.com/mozilla/pdf.js 否则,您可以尝试https://github.com/mozilla/pdf.js

I am researching about this, I think you first have to convert your chart into a picture and then use a PDF generator library and include this picture on it. 我正在对此进行研究,我认为您首先必须将图表转换为图片,然后使用PDF生成器库并将此图片包括在其中。 To convert chart to picture: http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/charts/Area.js 要将图表转换为图片: http : //dev.sencha.com/deploy/ext-4.1.0-gpl/examples/charts/Area.js

To generate PDF on c# if you are using it on server side it could be pdfsharp or itext 要在c#上生成PDF(如果在服务器端使用它),可能是pdfsharp或itext

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM