I need to show picture from dataGrid to print Page? How do I set a value image?

```
private void printDocument_nahlad_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
   //e.Graphics.DrawImage(dataGridView_nahlad.Rows[0].Cells[12]........... = , 620, 55, 120, 120);
}

```

[![enter image description here](https://i.stack.imgur.com/lTYJq.png)](https://i.stack.imgur.com/lTYJq.png)

I added code , where save picture to database SQL. Create a QRcode that save as a picture.I show all code to save data.

Create new :

```
public partial class form : Form
{

    kasspoxTestEntities test;

        private void btn_novy_vystup_Click(object sender, EventArgs e)
    {

        try
        {
            panel_vystup.Enabled = true;
            cmb_dodavatel_vystup.Focus();

            tab_vystup f = new tab_vystup();
            test.tab_vystup.Add(f);
            tabvystupBindingSource.Add(f);
            tabvystupBindingSource.MoveLast();

        }

          private void btn_generovat_vystup_Click(object sender, EventArgs e)
    {

      if (!string.IsNullOrEmpty(cmb_dodavatel_vystup.Text) & !string.IsNullOrEmpty(txt_cislo_palety_vystup.Text) & !string.IsNullOrEmpty(txt_hrubka_vystup.Text) & !string.IsNullOrEmpty(txt_sirka_vystup.Text) & !string.IsNullOrEmpty(txt_dlzka_vystup.Text) & !string.IsNullOrEmpty(txt_pocet_vystup.Text) & !string.IsNullOrEmpty(cmb_kvalita_vystup.Text) & !string.IsNullOrEmpty(cmb_druh_vystup.Text))
        {

                txt_objem_vystup.Text = (((Convert.ToInt32(txt_hrubka_vystup.Text) * Convert.ToInt32(txt_sirka_vystup.Text) * Convert.ToInt32(txt_dlzka_vystup.Text) * 0.000000001) * Convert.ToInt32(txt_pocet_vystup.Text)).ToString());
                txt_objem_vystup.Text = Math.Round(double.Parse(txt_objem_vystup.Text), 3).ToString();

                MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();
                encoder.QRCodeScale = 8;

                Bitmap bmp = encoder.Encode(cmb_dodavatel_vystup.Text + ";" +
                                                txt_cislo_palety_vystup.Text + txt_datum_vystup.Text + txt_smena_vystup.Text + ";" +
                                                txt_hrubka_vystup.Text + txt_sirka_vystup.Text + txt_dlzka_vystup.Text + ";" +
                                                txt_pocet_vystup.Text + ";" +
                                                cmb_kvalita_vystup.Text + ";" +
                                                txt_objem_vystup.Text + ";" +
                                                cmb_druh_vystup.Text);

                txt_link.Text = (cmb_dodavatel_vystup.Text + ";" +
                                                txt_cislo_palety_vystup.Text + txt_datum_vystup.Text + txt_smena_vystup.Text + ";" +
                                                txt_hrubka_vystup.Text + txt_sirka_vystup.Text + txt_dlzka_vystup.Text + ";" +
                                                txt_pocet_vystup.Text + ";" +
                                                cmb_kvalita_vystup.Text + ";" +
                                                txt_objem_vystup.Text + ";" +
                                                cmb_druh_vystup.Text);

                pictureBox.Image = bmp;
                btn_tlacit_vystup.Enabled = true;
                lb_pozor.Visible = false;

                 MessageBox.Show("Kód bol vygenerovaný a paleta uložená", "Informácia", MessageBoxButtons.OK, MessageBoxIcon.Information);

                tabvystupBindingSource.EndEdit();
                tabskladBindingSource.EndEdit();
                test.SaveChangesAsync();

```