Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Printing a DatagridView  In c#

Posted on 2011-03-07
2
Medium Priority
?
2,369 Views
Last Modified: 2013-12-17
We have a UI application which has a Datagridview which displays the data from a CSV.We want to provide a print option in the UI , which enables the user to
1.  Preview before printing Page
2. Change Print PageSettings
3. Fit the entire grid to the print Page
4. landscape or portrait option

Please help for the same.Application in c#(.net 3.5)


0
Comment
Question by:Manajit
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1000 total points
ID: 35057138
DataGridView Print/Print Preview Solution - Part I
http://www.codeproject.com/KB/printing/GridPrintPreviewSolution.aspx

DataGridView Print/Print Preview Solution - Part II
http://www.codeproject.com/KB/printing/GridPrintPreviewSolution2.aspx
0
 
LVL 3

Expert Comment

by:kumarnimavat
ID: 35166863
Hope the below given link would help you :-

http://www.xmlfox.com/print_datagridview.htm
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question