将gridview数据导出到pdf文件 [英] export gridview data to pdf file
本文介绍了将gridview数据导出到pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已放置此代码,但数据未绑定到PDF File Plz中,先生,任何人都可以帮助我,先生,
将GridView导出到Pdf-ASP.NET [^ ]
将Gridview导出为PDF [将GridView导出为Word Excel PDF CSV格式在ASP.Net [ ^ ]
将GridView导出为PDF [使用ITextSharp将Gridview数据导出为PDF [ ^ ]
将数据库导出到Excel,PDF,HTML,RTF ,不支持ASP.NET的XML等 [如何从ASP.NET页面创建PDF文件 [ ^ ]
使用iTextSharp(GridView)将HTML导出到Pdf [ ^ ]
I am put this Code but data not bind in PDF File Plz Sir any one help me sir,
Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.pdf"); Response.Cache.SetCacheability(HttpCacheability.NoCache); StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); grdVendorList.AllowPaging = false; grdVendorList.DataBind(); grdVendorList.RenderControl(hw); StringReader sr = new StringReader(sw.ToString()); Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f); HTMLWorker htmlparser = new HTMLWorker(pdfDoc); PdfWriter.GetInstance(pdfDoc, Response.OutputStream); pdfDoc.Open(); htmlparser.Parse(sr); pdfDoc.Close(); Response.Write(pdfDoc); Response.End();
解决方案
Export GridView To Pdf-ASP.NET[^]
Export Gridview to PDF [^]
Export GridView To Word Excel PDF CSV Formats in ASP.Net[^]
Export GridView to PDF[^]
Have a look at the following articles:
Export Gridview data to PDF using ITextSharp[^]
Export Database to Excel, PDF, HTML, RTF, XML, etc. for ASP.NET without Automation[^]
How to create PDF files from ASP.NET pages[^]
Export Html to Pdf using iTextSharp(GridView)[^]
这篇关于将gridview数据导出到pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文