如何在C#中以pdf格式导出datagridview数据 [英] How to export datagridview data in pdf in C#
本文介绍了如何在C#中以pdf格式导出datagridview数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!我想知道如何在c#中导出pdf中的datagridview数据,请帮助我,我真的需要尽快回答这个问题。
谢谢
问候
我尝试了什么:
i我什么都不尝试bcz我不知道这个问题的解决方案所以请帮助我
解决方案
如果您没有使用内置的第三个部分控件,您可以导出到Excel然后使用Excel创建PDF。 br />
一些快速谷歌搜索,发现这些可能会有所帮助:
办公室如何使用C#中的Excel对象示例将VisualGridView数据导出到Excel,Visual Studio 2012的VB.NET [< a href =https://code.msdn.microsoft.com/office/How-to-Export havenGridView-62f1f8fftarget =_ blanktitle =New Window> ^ ]
c# - 创建Excel文件并另存为PDF。 - 堆栈溢出 [ ^ ]
Hello guys! i want to know how to export datagridview data in pdf in c# please help me i really need the answer of this question ASAP.
Thanks
Regards
What I have tried:
i am trying nothing bcz i dont know solution of this problem so please help me
解决方案
If you're not using a third partly control which has that built in, you can export to Excel then use Excel to create a PDF.
Some quick Googling and found these that might help:
Office How to Export DataGridView Data to Excel by using Excel Object sample in C#, VB.NET for Visual Studio 2012[^]
c# - Create Excel file and save as PDF. - Stack Overflow[^]
这篇关于如何在C#中以pdf格式导出datagridview数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文