如何在C#Windows应用程序中将DataGridView行传输到打印机和Excel [英] How to Transfer DataGridView rows to printer and excel in c# windows application
本文介绍了如何在C#Windows应用程序中将DataGridView行传输到打印机和Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的先生,
我已经在Visual Studio 2005的C#中开发了一个Windows应用程序.我已经在DataGridView中制作了所有报表,现在我想将这些报表发送到打印机进行打印,也可以发送到excel表格.请告诉我这样做的C#代码.
问候,
Sushil Kr. Saini
Dear Sir,
I have developed a windows application in C# at visual studio 2005. I have make all reports in DataGridView and now I want to send those reports to Printer to print and also to excel sheet. Please tell me the c# code to do so.
Regards,
Sushil Kr. Saini
推荐答案
导出-将DataGridView导出为Excel .NET 2.0(C#代码) [ ^ ]
打印-打印DataGridView [
Export - Exporting a DataGridView to Excel in .NET 2.0 (C# code)[^]
Printing - Printing of DataGridView[^]
尊敬的先生,
到现在为止,我一直在从事DataGridView答复的打印.我也非常感谢您.它可以工作,但是仍然存在如何设置不同宽度的列的问题.
请解释.
问候,
Sushil Saini
Dear Sir,
Till now I''ve worked on Printing of DataGridView reply. I really appreciate you for the same. It works but still I have a problem how to set different widths of the columns.
Please explain.
Regards,
Sushil Saini
这篇关于如何在C#Windows应用程序中将DataGridView行传输到打印机和Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文