如何以pdf格式导出 [英] how to export in pdf
本文介绍了如何以pdf格式导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是Web应用程序的代码。我想在窗口应用程序中实现
is is code for web application. i want to implement in window application
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", string.Format("attachment;filename=Receipt-{0}.pdf", textBox7.Text));
Response.BinaryWrite(output.ToArray());
推荐答案
在这里找到一些解决方案
http ://dotnetask.com/Resource.aspx?Resourceid = 644 [ ^ ]
http:// stackoverflow.com/questions/2408764/export-data-in-microsoft-excel-using-c-sharp-windowsforms-application [ ^ ]
Find some solutions here
http://dotnetask.com/Resource.aspx?Resourceid=644[^]
http://stackoverflow.com/questions/2408764/export-data-in-microsoft-excel-using-c-sharp-windowsforms-application[^]
你需要使用第三方库,如 iTextSharp [ ^ ]。
You need to use a third party library such as iTextSharp[^].
这篇关于如何以pdf格式导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文