简体   繁体   中英

How to print gridview on paper in C#?

I'm working over windows application on C# . The problem is that i need to print datatable's content on A4 format after "print" button is pressed! How can i do that?? Should i use additional tools or something?

Here is the link which provides a sample application to print a datagridview, please go through this link

http://code.msdn.microsoft.com/windowsdesktop/CSWinFormPrintDataGridView-75864c45

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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