Change print quality in C #

1

I'm creating a program where at some point it needs to print a budget ...

using(PrintDocument print = new PrintDocument())
using(PrintPreviewDialog dialog = new PrintPreviewDialog())
{
    print.PrintPage += Print_PrintPage;
    dialog.Document = print;
    dialog.ShowDialog();
}

The problem is that it always prints in high quality, takes a long time to print and consumes more ink than necessary.

How do I decrease the print quality as well as other programs?

    
asked by anonymous 16.04.2018 / 16:56

1 answer

2

Try to use the Kind property of EventHandler Printpage.

using(PrintDocument print = new PrintDocument())
using(PrintPreviewDialog dialog = new PrintPreviewDialog())
{
    print.PrintPage += Print_PrintPage;

    //Declara a qualidade pré-definida para a impressão
    print.DefaultPageSettings.PrinterResolution.Kind = PrinterResolution.Low;

    dialog.Document = print;
    dialog.ShowDialog();
}

source

    
16.04.2018 / 18:53