1
I’m trying to print labels of my products straight from my app.
However I am not able to reduce the size of the paper in the printing, for this reason I’m losing 1 label every 1 impression I make, follow the photo:
Man PreviewDialog shows that really the paper is bigger than it should: Follow the photo:
I can’t get it set up for printing, does anyone have a solution? Follow my code so far:
    private void btnPreview_Click(object sender, EventArgs e)
    {
        DVprintPreviewDialog1.Document = DVprintDocument1;
        DVprintPreviewDialog1.ShowDialog();
    }
    private void DVprintDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
    {
        Bitmap bmp = Properties.Resources.logo;
        Image newImage = bmp;
        e.Graphics.DrawImage(newImage, 10, 3, newImage.Width, newImage.Height);
        e.Graphics.DrawString("TESTE", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(130, 13));
    }

