mardi 7 février 2017

Trouble To print QR Code c#

Vote count: 0

Hello guys I have a little problem with my application generating text by QR codes in Windows Forms, I've created previously a print button, but when I click to print the doc appears finished the document in blank, I checked many times why don't appear the QR pic in the document.

I'd like to see an answer and help me out of this trouble, thanks ^^

private void metroButton1_Click(object sender, EventArgs e)
    {
        Zen.Barcode.CodeQrBarcodeDraw QR = Zen.Barcode.BarcodeDrawFactory.CodeQr;
        pictureBox1.Image = QR.Draw(metroTextBox1.Text, 90);
    }

    private void btnPrint_Click(object sender, EventArgs e)
    {
        if (this.printDialog1.ShowDialog() == DialogResult.OK)
        {
            this.printDocument1.Print();
        }
    }

    private void Close_Click(object sender, EventArgs e)
    {
        Application.Exit();
    }

    private void Minimize_Click(object sender, EventArgs e)
    {
        this.WindowState = FormWindowState.Minimized;
    }
}

}

asked 1 min ago

Let's block ads! (Why?)



Trouble To print QR Code c#

Aucun commentaire:

Enregistrer un commentaire