C# Tutorial – Print DataGridView with Header & Footer Landscape | FoxLearn


Print data from DataGridView with Header & Footer Landscape using C# (DGVPrinter: The C# Basics beginner course is a free C# Tutorial Series that helps beginning programmers learn the basics of the C# Programming Language. This is the best way to Learn C# for beginners

c# – printPreview landscape mode in C#



  1. are doing magic or something,
    because i'm losing my mind over here.
    i've downloaded the class 4 times.
    but it doesn't work.
    it gives me errors,

  2. I wanted to add a Logo to my document. I used this code:

    DGVPrinter.ImbeddedImage logo = new DGVPrinter.ImbeddedImage();
     logo.ImageAlignment = DGVPrinter.Alignment.Left;
     logo.ImageAlignment = DGVPrinter.Alignment.Left;
    logo.ImageLocation = DGVPrinter.Location.Header;
     logo.ImageX = 0;
    logo.ImageY = 0;
    logo.theImage = Properties.Resources.picture;

    but i have this logo in the background behind the datagridview. Can you help me?

  3. Hi,
    I so enjoyed the video, but can't download DGVPrinter on the link provided here. will supply another please. thank you

  4. Hi FoxLearn im getting this error Error 1 'ASAPDP2019.DGVPrinter' does not contain a definition for 'printDocument' and no extension method 'printDocument' accepting a first argument of type 'ASAPDP2019.DGVPrinter' could be found (are you missing a using directive or an assembly reference?) E:ASAP DP2019ASAPDP2019ASAPDP2019Form5.cs 2032 21 ASAPDP2019

  5. hello Fox Learn can you help me ididn't have northwind database how to connect or download the database

  6. I followed this Video and Printed the Page, but it's not printing the Data of Some Columns, and Its not showing the Original Names of Some Columns example( Installmet#: is a columns name, but it is showing Installment___ ) and also the data is missing from my gridview, how can i cover this?

  7. Hi. I am trying to print a dataGridView. I cannot add one data Source, because it is changed dynamically by the user through loading a DataTableObject that they have selected. However, when I try to print it, dataGridView even with 4 columns takes up to 2 pages. How can I fix it?
    Thank you for the tutorial!

  8. I cant download the DGVPrinter.cs file, can you please send it to me….this video is very helpful….Thank You…
    my email …..eranga94@gmail.com

  9. this is very useful to my, but i want to add multiple subtitle like company name and details. can anyone help me with that????

  10. Hi, thanks for the tutorial, is it possible to adjust the column size? For example I want one column to be wider and one column to be narrower.


Please enter your comment!
Please enter your name here