Link to home
Start Free TrialLog in
Avatar of coperations07
coperations07Flag for United States of America

asked on

How can I reset this control each time so it only displays the image I want to see?

Hello,
I am trying to display a pdf image to a winform. I am using axacropdf to try to accomplish this. It is working perfectly the first time I pass a .pdf file to it to display. After the first time it doesn't display the image but shows a comment and fill/sign section. How can I reset this control each time so it only displays the image I want to see.

            //Display the card pdf image
            string sAGIN = Convert.ToString(dtMOcard.Rows[0][37]);
            string sAGIN3 = sAGIN.Substring(0, 3);
            pdfCard.setShowToolbar(false);
            pdfCard.src = "";
            pdfCard.LoadFile(@"\\usoscs320\e_drive\Gracol PDF Done NEW\" + sAGIN3 + @"\" + sAGIN + @"\F" + sAGIN + @".pdf");
            //pdfCard.src = @"\\usoscs320\e_drive\Gracol PDF Done NEW\" + sAGIN3 + @"\" + sAGIN + @"\F" + sAGIN + @".pdf";

Open in new window


User generated image
User generated image
Avatar of Kyle Santos
Kyle Santos
Flag of United States of America image

Hi,

I am following up on your question.  Do you still need help?

If you solved the problem on your own, would you please post the solution here in case others have the same problem?

Regards,

Kyle Santos
Customer Relations
Avatar of coperations07

ASKER

I still have the same issue. I haven't worked on it in a little while.

Thanks,
David
Hi David,

Thank you for letting me know.  Would this be helpful if I alerted more experts to your question to see if we can help you get this resolved?
Sure that would be good. Is there something I need to do differently when posting questions?
No, I will take care of that from here.  I am going to send out alerts to designated experts and add more topics to your question.  We'll monitor for activity.  Thank you for your patience.
Hi coperations07

This sound strange but I doubt this could be one of the caveats of using AcroPDF.

I did not see how you are initializing the PDF control. Can you drop more of your code please? and especially the code where you are initializing the control itself? Have you tried initializing the control before each call?

In my past experience, all the PDF controls I used (Including third party - expensive ones) required a reset / dispose / GC to function properly.

Regards,
Chinmay.
Hi Chinmay,

Thanks for the response. It has been awhile since I was working with this, but I did try several different things to try to get it working. The code I posted is really the only code I typed about the pdf control. There is some in the designer...

            this.tabMOcard = new System.Windows.Forms.TabPage();
            this.pdfCard = new AxAcroPDFLib.AxAcroPDF();
            this.gbxMO.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvNotes)).BeginInit();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvComponent)).BeginInit();
            this.panel2.SuspendLayout();
            this.panel3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvMO2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvUPC)).BeginInit();
            this.tabControlMO.SuspendLayout();
            this.tabSheetMO.SuspendLayout();
            this.tabMOcard.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pdfCard)).BeginInit();
            this.SuspendLayout();
            // 

         // 
            // pdfCard
            // 
            this.pdfCard.Enabled = true;
            this.pdfCard.Location = new System.Drawing.Point(21, 163);
            this.pdfCard.Name = "pdfCard";
            this.pdfCard.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("pdfCard.OcxState")));
            this.pdfCard.Size = new System.Drawing.Size(796, 565);
            this.pdfCard.TabIndex = 23;
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1016, 757);
            this.Controls.Add(this.pdfCard);
            this.Controls.Add(this.tabControlMO);
            this.Controls.Add(this.dgvUPC);
            this.Controls.Add(this.panel4);
            this.Controls.Add(this.label39);
            this.Controls.Add(this.txtUPCscan);
            this.Controls.Add(this.btnMO);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.dgvNotes);
            this.Controls.Add(this.gbxMO);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.cboSection);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.cboJitl);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.lstCard);
            this.Controls.Add(this.cboSheet);
            this.Controls.Add(this.btnLoad);
            this.Name = "frmMain";
            this.Text = "DDS ";
            this.Load += new System.EventHandler(this.frmMain_Load);
            this.gbxMO.ResumeLayout(false);
            this.gbxMO.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvNotes)).EndInit();
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvComponent)).EndInit();
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvMO2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvUPC)).EndInit();
            this.tabControlMO.ResumeLayout(false);
            this.tabSheetMO.ResumeLayout(false);
            this.tabMOcard.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pdfCard)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

 private AxAcroPDFLib.AxAcroPDF pdfCard;

Open in new window


Here is the code from the main form.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data.Odbc;
using System.IO; //added for streamwriter
using System.Diagnostics; //added to execute ftp 
using System.Net; //added for ftp
using Sybase.Data.AseClient;


namespace DDS
{
    public partial class frmMain : Form
    {
        //List Panel not working for me. May revisit later.
        //List<Panel> MOpanelList = new List<Panel>();

        public frmMain()
        {
            InitializeComponent();
        }

        private SqlConnection con = new SqlConnection();
        private OdbcConnection cisConn = new OdbcConnection(Properties.Settings.Default.setCIS1);
        private DataTable dtJitl = new DataTable();
        private DataTable dtSheet = new DataTable();
        private DataTable dtSection = new DataTable();
        private DataTable dtCard = new DataTable();
        private DataTable dtMO = new DataTable(); //Main sheet MO info
        private DataTable dtForm = new DataTable();
        private DataTable dtMO2 = new DataTable(); //card component MO info
        private DataTable dtMO3 = new DataTable(); //card MO details
        private DataTable dtMOcard = new DataTable(); //Main card MO info
        private DataTable dtUPC = new DataTable(); //Return data from card upc scan

        private void btnMO_Click(object sender, EventArgs e)
        {
            dtMO.Clear();
            dtMO2.Clear();
            dtMO3.Clear();
            dtMOcard.Clear();
     
            if (rbSheet.Checked == true)
            {
                //Produce the sheet level MO.
                var con = new AseConnection(Properties.Settings.Default.setCIS2);
                var cmdSP = new AseCommand("p_cis_sheet_travel_mo", con);
                int iJITL = Convert.ToInt32(cboJitl.Text);
                //Attain the order id from sheet table to use for retrieving section and card info.
                int iSheetID = 0;
                DataRow[] result = dtSheet.Select("sheet = '" + cboSheet.Text + "'");
                foreach (DataRow row in result)
                {
                    iSheetID = (int)row[1];
                }

                cmdSP.CommandType = CommandType.StoredProcedure;
                cmdSP.Connection = con;
                cmdSP.Parameters.AddWithValue("@sheet_id", iSheetID);

                var daMO = new AseDataAdapter(cmdSP);
                daMO.Fill(dtMO);
                dgvNotes.DataSource = dtMO;

                //display results
                txtMO2sheet.Text = "SHEET#: " + Convert.ToString(dtMO.Rows[0][1]) + Convert.ToString(dtMO.Rows[0][2]) + Convert.ToString(dtMO.Rows[0][3]) + Convert.ToString(dtMO.Rows[0][4]);
                txtMO2jitl.Text = "JITL#: " + Convert.ToString(iJITL);
                //display only the date portion of the datetime values.
                DateTime dtmJitlDue = Convert.ToDateTime(dtMO.Rows[0][6]);
                txtMO2jitlduedate.Text = "JITL DUE DATE: " + dtmJitlDue.ToString("d");
                DateTime dtmLithoDue = Convert.ToDateTime(dtMO.Rows[0][19]);
                txtMO2lithoduedate.Text = "LITHO DATE: " + dtmLithoDue.ToString("d");

                DateTime dtmRlsDate = DateTime.Today;
                if (dtMO.Rows[0][7] is DBNull)
                {
                    txtMO2rlsdate.Text = "RELEASE DATE: ";
                }
                else
                    dtmRlsDate = Convert.ToDateTime(dtMO.Rows[0][7]);
                    txtMO2rlsdate.Text = "RELEASE DATE: " + dtmRlsDate.ToString("d");

                txtMO2manuprty.Text = "MANU PRTY: " + Convert.ToString(dtMO.Rows[0][20]);
                txtMO2nbrup.Text = "# UP: " + Convert.ToString(dtMO.Rows[0][13]);
                txtMO2route.Text = "TOTAL SHEET ROUTE: " + Convert.ToString(dtMO.Rows[0][14]);
                txtMO2length.Text = "LENGTH: " + Convert.ToString(dtMO.Rows[0][15]) + "/32";
                txtMO2width.Text = "WIDTH: " + Convert.ToString(dtMO.Rows[0][16]) + "/32";
                txtMO2layout.Text = "STANDARD SHT. LAYOUT: " + Convert.ToString(dtMO.Rows[0][17]);
                txtMO2form.Text = Convert.ToString(dtMO.Rows[0][8]);
                txtMO2agin.Text = Convert.ToString(dtMO.Rows[0][9]);
                txtMO2skid.Text = Convert.ToString(dtMO.Rows[0][11]);
                txtMO2litho.Text = Convert.ToString(dtMO.Rows[0][12]);
                txtMO2partkey.Text = Convert.ToString(dtMO.Rows[0][5]);
                txtMO2partkeybarcode.Text = Convert.ToString(dtMO.Rows[0][5]);
                //txtFlat.Text = Convert.ToString(dtMO.Rows[0][23]);
                //string sType = Convert.ToString(dtMO.Rows[0][33]);
                //long iTotQty = Convert.ToInt64(dtMO.Rows[0][18]);

                cmdSP.Dispose();

                //Create the grid that is used for user written entry.
                DataTable dtMO2 = new DataTable();
                dtMO2.Columns.Add(new DataColumn("Date", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Shift", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Employee #", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Machine #", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Form", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Quantity", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Cum Quantity", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Litho Scrap", typeof(string)));
                dtMO2.Columns.Add(new DataColumn("Other Scrap", typeof(string)));

                dtMO2.Rows.Add();
                dtMO2.Rows.Add();
                dtMO2.Rows.Add();
                dtMO2.Rows.Add();
                dtMO2.Rows.Add();

                dgvMO2.DataSource = dtMO2;
                dgvMO2.Columns[0].Width = 50;
                dgvMO2.Columns[1].Width = 50;
                dgvMO2.Columns[2].Width = 80;
                dgvMO2.Columns[3].Width = 80;
                dgvMO2.Columns[4].Width = 50;
                dgvMO2.Columns[5].Width = 80;
                dgvMO2.Columns[6].Width = 80;
                dgvMO2.Columns[7].Width = 80;
                dgvMO2.Columns[8].Width = 80;

                //Display the MO.
                panel1.Visible = true;
                panel3.Visible = true;
                tabControlMO.SelectedTab = tabSheetMO;
                //MOpanelList[1].BringToFront();


            }
            if (rbCard.Checked == true)
            {
                var con = new AseConnection(Properties.Settings.Default.setCIS2);
                var cmdSP = new AseCommand("p_cis_card_travel_mo", con);
                int iJITL = Convert.ToInt32(cboJitl.Text);

                int iPK = 0;
                DataRow[] result = dtCard.Select("itm_agin_nbr = '" + lstCard.Text + "'");
                foreach (DataRow row in result)
                {
                    iPK = (int)row[1];
                }


                cmdSP.CommandType = CommandType.StoredProcedure;
                cmdSP.Connection = con;
                cmdSP.Parameters.AddWithValue("@i_part_key", iPK);
                cmdSP.Parameters.AddWithValue("@jitl", iJITL);
                cmdSP.Parameters.AddWithValue("@i_parent_part_key", 0);

                var daMO = new AseDataAdapter(cmdSP);
                daMO.Fill(dtMOcard);
                dgvNotes.DataSource = dtMOcard;

                if (dtMOcard.Rows.Count == 0)
                {
                    MessageBox.Show("No Information Retreived.", "Not Found");
                    return;
                }

                //display results
                label25.Text = "CARD ROUTE IN JITL " + iJITL + ":";
                txtSheet.Text = Convert.ToString(dtMOcard.Rows[0][0]);
                txtPK.Text = Convert.ToString(iPK);
                txtJitl.Text = Convert.ToString(iJITL);
                txtMktNbr.Text = Convert.ToString(dtMOcard.Rows[0][3]) + Convert.ToString(dtMOcard.Rows[0][4]) + Convert.ToString(dtMOcard.Rows[0][5]) + Convert.ToString(dtMOcard.Rows[0][6]);
                txtDesign.Text = Convert.ToString(dtMOcard.Rows[0][7]);
                txtPKbarcode.Text = "#"+Convert.ToString(iPK)+"#";
                txtA.Text = Convert.ToString(dtMOcard.Rows[0][9]);
                txtB.Text = Convert.ToString(dtMOcard.Rows[0][10]);
                txtC.Text = Convert.ToString(dtMOcard.Rows[0][11]);
                txtD.Text = Convert.ToString(dtMOcard.Rows[0][12]);
                txtE.Text = Convert.ToString(dtMOcard.Rows[0][13]);
                txtF.Text = Convert.ToString(dtMOcard.Rows[0][14]);
                txtWagin.Text = Convert.ToString(dtMOcard.Rows[0][15]);
                txtDueDate.Text = Convert.ToString(dtMOcard.Rows[0][1]);
                txtRlsDate.Text = Convert.ToString(dtMOcard.Rows[0][2]);
                txtRagin.Text = Convert.ToString(dtMOcard.Rows[0][37]);
                txtLine.Text = Convert.ToString(dtMOcard.Rows[0][38]);
                txtManu.Text = "";
                txtTotRoute.Text = Convert.ToString(dtMOcard.Rows[0][16]);
                txtCardRoute.Text = Convert.ToString(dtMOcard.Rows[0][17]);
                txtTotQty.Text = Convert.ToString(dtMOcard.Rows[0][18]);
                txtGlue.Text = Convert.ToString(dtMOcard.Rows[0][19]);
                txtFold.Text = Convert.ToString(dtMOcard.Rows[0][21]);
                txtFlat.Text = Convert.ToString(dtMOcard.Rows[0][23]);
                txtOnSect.Text = Convert.ToString(dtMOcard.Rows[0][27]);
                txtShort.Text = Convert.ToString(dtMOcard.Rows[0][20]);
                txtFoldDesign.Text = Convert.ToString(dtMOcard.Rows[0][22]);
                txtFolded.Text = Convert.ToString(dtMOcard.Rows[0][25]);
                txtUPC.Text = Convert.ToString(dtMOcard.Rows[0][28]);
                long iOperSeq = Convert.ToInt64(dtMOcard.Rows[0][31]);
                string sType = Convert.ToString(dtMOcard.Rows[0][33]);

                long iTotQty = 0;
                if (dtMOcard.Rows[0][18] is DBNull)
                {
                    iTotQty = 0;
                }
                else
                {
                    iTotQty = Convert.ToInt64(dtMOcard.Rows[0][18]);
                }
                

                //Execute store procedure that retrieves the components.
                var cmdSP2 = new AseCommand("p_cis_card_travel_mo_cmpt", con);

                cmdSP2.CommandType = CommandType.StoredProcedure;
                cmdSP2.Connection = con;
                cmdSP2.Parameters.AddWithValue("@i_part_key_card", iPK);

                var daMO2 = new AseDataAdapter(cmdSP2);
                daMO2.Fill(dtMO2);
                dgvComponent.DataSource = dtMO2;
                dgvComponent.Columns[0].Width = 150;
                dgvComponent.Columns[1].Width = 100;
                dgvComponent.Columns[2].Width = 250;
                dgvComponent.Columns[3].Width = 100;

                dgvComponent.Columns[0].HeaderText = "COMPONENT";
                dgvComponent.Columns[1].HeaderText = "AGIN";
                dgvComponent.Columns[2].HeaderText = "AGIN DESCRIPTION";
                dgvComponent.Columns[3].HeaderText = "SOURCE";

                //Execute store procedure that retrieves the details.
                var cmdSP3 = new AseCommand("p_cis_card_travel_mo_detail", con);

                cmdSP3.CommandType = CommandType.StoredProcedure;
                cmdSP3.Connection = con;
                cmdSP3.Parameters.AddWithValue("@i_part_key", iPK);
                cmdSP3.Parameters.AddWithValue("@jitl", iJITL);
                cmdSP3.Parameters.AddWithValue("@oper_seq", iOperSeq);
                cmdSP3.Parameters.AddWithValue("@type", sType);
                cmdSP3.Parameters.AddWithValue("@tfr_qty", iTotQty);

                var daMO3 = new AseDataAdapter(cmdSP3);
                daMO3.Fill(dtMO3);

                txtTagin.Text = Convert.ToString(dtMO3.Rows[0][4]);
                txtInPkg.Text = Convert.ToString(dtMO3.Rows[0][12]);
                txtInRtl.Text = Convert.ToString(dtMO3.Rows[0][15]);
                txtStore.Text = Convert.ToString(dtMO3.Rows[0][6]);
                txtPlant.Text = Convert.ToString(dtMO3.Rows[0][7]);
                txtNextOper.Text = Convert.ToString(dtMO3.Rows[0][10]);
                txtQty.Text = Convert.ToString(dtMO3.Rows[0][11]);
                txtCLCagin.Text = Convert.ToString(dtMO3.Rows[0][13]);
                txtPPcont.Text = Convert.ToString(dtMO3.Rows[0][16]);
                txtNbrIn.Text = Convert.ToString(dtMO3.Rows[0][12]) + " in";
                txtTaginBig.Text = Convert.ToString(dtMO3.Rows[0][4]);
                txtThdrBcode.Text = "#"+Convert.ToString(dtMO3.Rows[0][2])+"#";

                cmdSP.Dispose();
                cmdSP2.Dispose();
                cmdSP3.Dispose();

                //Display the MO.
                panel1.Visible = true;
                panel3.Visible = true;
                tabControlMO.SelectedTab = tabMOcard;
                //MOpanelList[0].BringToFront();

                //Display the card pdf image
                string sAGIN = Convert.ToString(dtMOcard.Rows[0][37]);
                string sAGIN3 = sAGIN.Substring(0, 3);
                pdfCard.src = "";
                pdfCard.LoadFile(@"\\usoscs320\e_drive\Gracol PDF Done NEW\" + sAGIN3 + @"\" + sAGIN + @"\F" + sAGIN + @".pdf");
                pdfCard.setShowToolbar(false);
                pdfCard.setPageMode("");
                pdfCard.setView("Fit");
                //pdfCard.src = @"\\usoscs320\e_drive\Gracol PDF Done NEW\" + sAGIN3 + @"\" + sAGIN + @"\F" + sAGIN + @".pdf";

            }
        }

        private void frmMain_Load(object sender, EventArgs e)
        {

            //establish a connection to CIS.
            cisConn.Open();
            OdbcCommand cmd = new OdbcCommand();
            cmd.Connection = cisConn;
            cmd.CommandType = CommandType.Text;

            //Populate Jitl combobox. Disable the selectindexchanged event while populating the cbo.
            string sqlDDS = "SELECT loc_id FROM location WHERE plnt_loc_cd = '002' AND loc_id <> 2";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daJitl = new OdbcDataAdapter(cmd);
            daJitl.Fill(dtJitl);
            this.cboJitl.SelectedIndexChanged -= new EventHandler(cboJitl_SelectedIndexChanged);
            this.cboJitl.DataSource = dtJitl;
            this.cboJitl.DisplayMember = "loc_id";
            this.cboJitl.Text = "43";
            this.cboJitl.SelectedIndexChanged += new EventHandler(cboJitl_SelectedIndexChanged);

            //Populate Sheet combobox. (Sheets with open cards)
            sqlDDS = @"SELECT convert(char(2), sht_yy_dt) +sht_pgm_cls + convert(char(4), sht_seq_nbr) + sht_usg_txt sheet, s.cst_mfg_ord_nbr
                        FROM sheet s
                        INNER JOIN cst_mfg_order cmo
                        ON s.cst_mfg_ord_nbr = cmo.cst_mfg_ord_nbr
                        WHERE s.loc_id = @JITL
                        AND cmo.cst_mfg_ord_sta_cd = 'R'
                        ORDER BY convert(char(2), sht_yy_dt) + sht_pgm_cls + convert(char(4), sht_seq_nbr) + sht_usg_txt desc";

            /////This commented out section only brings in sheets that have not been closed at the sheet level.
              //sqlDDS = @"SELECT convert(char(2),sht_yy_dt) + sht_pgm_cls + convert(char(4),sht_seq_nbr) + sht_usg_txt sheet, s.cst_mfg_ord_nbr 
              //          FROM sheet s
              //          INNER JOIN form f
              //          ON s.cst_mfg_ord_nbr = f.cst_mfg_ord_nbr
              //          WHERE s.loc_id = @JITL
              //          AND f.part_sta_cd = 'R'
              //          ORDER BY convert(char(2),sht_yy_dt) + sht_pgm_cls + convert(char(4),sht_seq_nbr) + sht_usg_txt desc";

            cmd.Parameters.AddWithValue("@JITL", Convert.ToInt32(cboJitl.Text));
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daSheet = new OdbcDataAdapter(cmd);
            daSheet.Fill(dtSheet);
            this.cboSheet.SelectedIndexChanged -= new EventHandler(cboSheet_SelectedIndexChanged);
            this.cboSheet.DataSource = dtSheet;
            this.cboSheet.DisplayMember = "sheet";
            this.cboSheet.SelectedIndexChanged += new EventHandler(cboSheet_SelectedIndexChanged);

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iOrdNbr = 0;
            DataRow[] result = dtSheet.Select("sheet = '" + cboSheet.Text + "'");
            foreach (DataRow row in result)
            {
                iOrdNbr = (int)row[1];
            }

            //Populate Sheet combobox.
            sqlDDS = "SELECT part_key FROM form WHERE cst_mfg_ord_nbr = " + iOrdNbr;
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daForm = new OdbcDataAdapter(cmd);
            daForm.Fill(dtForm);

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iPKsheet = 0;
            iPKsheet = (int)dtForm.Rows[0][0];

            //DataRow[] resultForm = dtForm.Select("cst_mfg_ord_nbr = " + iOrdNbr);
            //foreach (DataRow row in resultForm)
            //{
            //    iPKsheet = (int)row[0];
            //}

            //Populate Section combobox.
            sqlDDS = "SELECT sctn_id FROM section WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY sctn_id";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daSection = new OdbcDataAdapter(cmd);
            daSection.Fill(dtSection);
            this.cboSection.SelectedIndexChanged -= new EventHandler(cboSection_SelectedIndexChanged);
            this.cboSection.DataSource = dtSection;
            this.cboSection.DisplayMember = "sctn_id";
            this.cboSection.SelectedIndexChanged += new EventHandler(cboSection_SelectedIndexChanged);

            //Populate card listbox.
            sqlDDS = "SELECT itm_agin_nbr,part_key FROM sht_mfg_item WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY itm_agin_nbr";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daCard = new OdbcDataAdapter(cmd);
            daCard.Fill(dtCard);
            this.lstCard.DataSource = dtCard;
            this.lstCard.DisplayMember = "itm_agin_nbr";
            this.lstCard.ValueMember = "itm_agin_nbr";

            cmd.Dispose();
            cisConn.Close();

            ////Add the MO panel controls to a panel list so they can overlay each other.
            //MOpanelList.Add(panel1);
            //MOpanelList.Add(panel2);
            //MOpanelList.Add(panel3);


        }

        private void cboSheet_SelectedIndexChanged(object sender, EventArgs e)
        {
            //clear any previous MO data.
            MOresetCard();
            MOresetSheet();

            dtSection.Clear();
            dtCard.Clear();
            lstCard.Enabled = true;

            //establish a connection to CIS.
            cisConn.Open();
            OdbcCommand cmd = new OdbcCommand();
            cmd.Connection = cisConn;
            cmd.CommandType = CommandType.Text;

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iOrdNbr = 0;
            DataRow[] result = dtSheet.Select("sheet = '" + cboSheet.Text + "'");
            foreach (DataRow row in result)
            {
                iOrdNbr = (int)row[1];
            }

            //Get partkey for the order number.
            string sqlDDS = "SELECT part_key FROM form WHERE cst_mfg_ord_nbr = " + iOrdNbr;
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daForm = new OdbcDataAdapter(cmd);
            daForm.Fill(dtForm);

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iPKsheet = 0;
            iPKsheet = (int)dtForm.Rows[0][0];

            //Populate Section combobox.
            sqlDDS = "SELECT sctn_id FROM section WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY sctn_id";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daSection = new OdbcDataAdapter(cmd);
            daSection.Fill(dtSection);
            this.cboSection.DataSource = dtSection;
            this.cboSection.DisplayMember = "sctn_id";

            //Populate card listbox.
            sqlDDS = "SELECT itm_agin_nbr,part_key FROM sht_mfg_item WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY itm_agin_nbr";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daCard = new OdbcDataAdapter(cmd);
            daCard.Fill(dtCard);
            this.lstCard.DataSource = dtCard;
            this.lstCard.DisplayMember = "itm_agin_nbr";
            this.lstCard.ValueMember = "itm_agin_nbr";

            cmd.Dispose();
            cisConn.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            {

            }
        }

        private void label16_Click(object sender, EventArgs e)
        {

        }

        //private void btnMO_Click_1(object sender, EventArgs e)
        //{

        //}

        private void cboJitl_SelectionChangeCommitted(object sender, EventArgs e)
        {

        }

        private void cboJitl_SelectedIndexChanged(object sender, EventArgs e)
        {
            //clear any previous MO data.
            MOresetCard();
            MOresetSheet();

            dtSection.Clear();
            dtSheet.Clear();
            dtCard.Clear();
            lstCard.Enabled = true;

            //establish a connection to CIS.
            cisConn.Open();
            OdbcCommand cmd = new OdbcCommand();
            cmd.Connection = cisConn;
            cmd.CommandType = CommandType.Text;

            string jitl = cboJitl.Text;

            //Populate Sheet combobox.
            string sqlDDS = @"SELECT convert(char(2),sht_yy_dt) + sht_pgm_cls + convert(char(4),sht_seq_nbr) + sht_usg_txt sheet, s.cst_mfg_ord_nbr 
                        FROM sheet s
                        INNER JOIN cst_mfg_order cmo
                        ON s.cst_mfg_ord_nbr = cmo.cst_mfg_ord_nbr
                        WHERE s.loc_id = @JITL
                        AND cmo.cst_mfg_ord_sta_cd = 'R'
                        ORDER BY convert(char(2),sht_yy_dt) + sht_pgm_cls + convert(char(4),sht_seq_nbr) + sht_usg_txt desc";

            cmd.Parameters.AddWithValue("@JITL", Convert.ToInt32(cboJitl.Text));
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daSheet = new OdbcDataAdapter(cmd);
            daSheet.Fill(dtSheet);
            this.cboSheet.DataSource = dtSheet;
            this.cboSheet.DisplayMember = "sheet";

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iOrdNbr = 0;
            DataRow[] result = dtSheet.Select("sheet = '" + cboSheet.Text + "'");
            foreach (DataRow row in result)
            {
                iOrdNbr = (int)row[1];
            }

            //Populate Sheet combobox.
            sqlDDS = "SELECT part_key FROM form WHERE cst_mfg_ord_nbr = " + iOrdNbr;
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daForm = new OdbcDataAdapter(cmd);
            daForm.Fill(dtForm);

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iPKsheet = 0;
            iPKsheet = (int)dtForm.Rows[0][0];

            //Populate Section combobox.
            sqlDDS = "SELECT sctn_id FROM section WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY sctn_id";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daSection = new OdbcDataAdapter(cmd);
            daSection.Fill(dtSection);
            this.cboSection.DataSource = dtSection;
            this.cboSection.DisplayMember = "sctn_id";

            //Populate card listbox.
            sqlDDS = "SELECT itm_agin_nbr,part_key FROM sht_mfg_item WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY itm_agin_nbr";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daCard = new OdbcDataAdapter(cmd);
            daCard.Fill(dtCard);
            this.lstCard.DataSource = dtCard;
            this.lstCard.DisplayMember = "itm_agin_nbr";
            this.lstCard.ValueMember = "itm_agin_nbr";

            cmd.Dispose();
            cisConn.Close();
        }

        private void cboSection_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void txtUPCscan_TextChanged(object sender, EventArgs e)
            {


        }

        private void txtUPCscan_Leave(object sender, EventArgs e)
        {
            //clear any previous MO data from gui.
            MOresetCard();
            MOresetSheet();

            //select the card MO radio button.
            rbCard.Checked = true;
            
            //Remove any previous records.
            dtUPC.Clear();

            cisConn.Open();
            OdbcCommand cmd = new OdbcCommand();
            cmd.Connection = cisConn;
            cmd.CommandType = CommandType.Text;

            string upc = txtUPCscan.Text;
            int jitl = Convert.ToInt32(cboJitl.Text);

            //put through conversion to drop leading zeroes.
            upc = Convert.ToString(Convert.ToInt64(upc));

            string sql = @"SELECT convert(char(1),s.sht_yy_dt) + ' ' + s.sht_pgm_cls + convert(char(4),sht_seq_nbr) + sht_usg_txt SHEET, pp.part_key PARTKEY
                FROM dbo.package_product pp
                INNER JOIN sht_mfg_item smi
                ON pp.part_key = smi.part_key
                INNER JOIN sheet s
                ON smi.cst_mfg_ord_nbr = s.cst_mfg_ord_nbr
                INNER JOIN cst_mfg_order cmo
                ON s.cst_mfg_ord_nbr = cmo.cst_mfg_ord_nbr
                INNER JOIN part_operation_location pol
                ON smi.part_key = pol.part_key
                WHERE pp.upc_cd LIKE @UPC
                AND cmo.cst_mfg_ord_sta_cd = 'R'
                AND pol.oper_cd = 'X'
                AND pol.loc_id = @JITL";

            cmd.CommandText = sql;
            cmd.Parameters.AddWithValue("@UPC", "%" + upc);
            cmd.Parameters.AddWithValue("@JITL", jitl);
            OdbcDataAdapter da = new OdbcDataAdapter(cmd);
            da.Fill(dtUPC);

            cmd.Dispose();
            cisConn.Close();

            lstCard.Enabled = false;

            //If there are multiple sheets that the card has been printed on make the user select which one.
            if (dtUPC.Rows.Count > 1)
            {
                //hide the sheet/section/card boxes until a sheet selection is made.
                cboSheet.Visible = false;
                cboSection.Visible = false;
                lstCard.Visible = false;

                dgvUPC.DataSource = dtUPC;
                dgvUPC.Columns[0].Width = 100;
                dgvUPC.Columns[1].Width = 70;
                dgvUPC.Visible = true;
            }
            //if only one result is returned, display it.
            else if (dtUPC.Rows.Count == 1)
            {
                cboSheet.Text = dtUPC.Rows[0][0].ToString();
                CardMO(Convert.ToInt32(dtUPC.Rows[0][1]));
               
            }
            //if no results are returned, let it be known.
            else
            {
                MessageBox.Show("No Released Sheet Information Found.", "No Info");
                return;
            }

            lstCard.Enabled = false;
            txtUPCscan.Text = "";

        }

        private void dgvUPC_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (dgvUPC.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
            {
                int iPK = Convert.ToInt32(dgvUPC.Rows[e.RowIndex].Cells[1].Value.ToString());
                string sheet = dgvUPC.Rows[e.RowIndex].Cells[0].Value.ToString();
                cboSheet.Text = sheet;

                dtSection.Clear();
                dtCard.Clear();

                //establish a connection to CIS.
                cisConn.Open();
                OdbcCommand cmd = new OdbcCommand();
                cmd.Connection = cisConn;
                cmd.CommandType = CommandType.Text;

                //Attain the order id from sheet table to use for retrieving section and card info.
                int iOrdNbr = 0;
                DataRow[] result = dtSheet.Select("sheet = '" + cboSheet.Text + "'");
                foreach (DataRow row in result)
                {
                    iOrdNbr = (int)row[1];
                }

                //Get partkey for the order number.
                string sqlDDS = "SELECT part_key FROM form WHERE cst_mfg_ord_nbr = " + iOrdNbr;
                cmd.CommandText = sqlDDS;
                OdbcDataAdapter daForm = new OdbcDataAdapter(cmd);
                daForm.Fill(dtForm);

                //Attain the order id from sheet table to use for retrieving section and card info.
                int iPKsheet = 0;
                iPKsheet = (int)dtForm.Rows[0][0];

                //Populate Section combobox.
                sqlDDS = "SELECT sctn_id FROM section WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY sctn_id";
                cmd.CommandText = sqlDDS;
                OdbcDataAdapter daSection = new OdbcDataAdapter(cmd);
                daSection.Fill(dtSection);
                this.cboSection.DataSource = dtSection;
                this.cboSection.DisplayMember = "sctn_id";

                //Populate card listbox.
                sqlDDS = "SELECT itm_agin_nbr,part_key FROM sht_mfg_item WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY itm_agin_nbr";
                cmd.CommandText = sqlDDS;
                OdbcDataAdapter daCard = new OdbcDataAdapter(cmd);
                daCard.Fill(dtCard);
                this.lstCard.DataSource = dtCard;
                this.lstCard.DisplayMember = "itm_agin_nbr";
                this.lstCard.ValueMember = "itm_agin_nbr";

                dgvUPC.Visible = false;
                cboSheet.Visible = true;
                cboSection.Visible = true;
                lstCard.Visible = true;

                cmd.Dispose();
                cisConn.Close();

                //call cardMO method to populate the card MO.
                CardMO(iPK);
                lstCard.Enabled = false;

            }
        }

        public void sheetChange(string sheet)
        {
            dtSection.Clear();
            dtCard.Clear();

            //establish a connection to CIS.
            cisConn.Open();
            OdbcCommand cmd = new OdbcCommand();
            cmd.Connection = cisConn;
            cmd.CommandType = CommandType.Text;

            dgvUPC.DataSource = dtSheet;

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iOrdNbr = 0;
            DataRow[] result = dtSheet.Select("sheet = '" + sheet + "'");
            foreach (DataRow row in result)
            {
                iOrdNbr = (int)row[1];
            }

            //Get partkey for the order number.
            string sqlDDS = "SELECT part_key FROM form WHERE cst_mfg_ord_nbr = " + iOrdNbr;
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daForm = new OdbcDataAdapter(cmd);
            daForm.Fill(dtForm);

            //Attain the order id from sheet table to use for retrieving section and card info.
            int iPKsheet = 0;
            iPKsheet = (int)dtForm.Rows[0][0];

            //Populate Section combobox.
            sqlDDS = "SELECT sctn_id FROM section WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY sctn_id";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daSection = new OdbcDataAdapter(cmd);
            daSection.Fill(dtSection);
            this.cboSection.DataSource = dtSection;
            this.cboSection.DisplayMember = "sctn_id";

            //Populate card listbox.
            sqlDDS = "SELECT itm_agin_nbr,part_key FROM sht_mfg_item WHERE cst_mfg_ord_nbr = " + iOrdNbr + " ORDER BY itm_agin_nbr";
            cmd.CommandText = sqlDDS;
            OdbcDataAdapter daCard = new OdbcDataAdapter(cmd);
            daCard.Fill(dtCard);
            this.lstCard.DataSource = dtCard;
            this.lstCard.DisplayMember = "itm_agin_nbr";
            this.lstCard.ValueMember = "itm_agin_nbr";

            cmd.Dispose();
            cisConn.Close();
        }

        public void CardMO(int iPK)
        {
            //establish connection to CIS
            var con = new AseConnection(Properties.Settings.Default.setCIS2);
            var cmdSP = new AseCommand("p_cis_card_travel_mo", con);
            int iJITL = Convert.ToInt32(cboJitl.Text);

            //pass parameters for stored proc.
            cmdSP.CommandType = CommandType.StoredProcedure;
            cmdSP.Connection = con;
            cmdSP.Parameters.AddWithValue("@i_part_key", iPK);
            cmdSP.Parameters.AddWithValue("@jitl", iJITL);
            cmdSP.Parameters.AddWithValue("@i_parent_part_key", 0);

            //clear out the datatables to prepare for new data.
            dtMOcard.Clear();
            dtMO2.Clear();
            dtMO3.Clear();

            //fill the datatable with stored proc results. Then varify data was retrieved.
            var daMO = new AseDataAdapter(cmdSP);
            daMO.Fill(dtMOcard);
            dgvNotes.DataSource = dtMOcard;

            if (dtMOcard.Rows.Count == 0)
            {
                MessageBox.Show("No Information Retreived.", "Not Found");
                return;
            }

            //display results
            label25.Text = "CARD ROUTE IN JITL " + iJITL + ":";
            txtSheet.Text = Convert.ToString(dtMOcard.Rows[0][0]);
            txtPK.Text = Convert.ToString(iPK);
            txtJitl.Text = Convert.ToString(iJITL);
            txtMktNbr.Text = Convert.ToString(dtMOcard.Rows[0][3]) + Convert.ToString(dtMOcard.Rows[0][4]) + Convert.ToString(dtMOcard.Rows[0][5]) + Convert.ToString(dtMOcard.Rows[0][6]);
            txtDesign.Text = Convert.ToString(dtMOcard.Rows[0][7]);
            txtPKbarcode.Text = "#" + Convert.ToString(iPK) + "#";
            txtA.Text = Convert.ToString(dtMOcard.Rows[0][9]);
            txtB.Text = Convert.ToString(dtMOcard.Rows[0][10]);
            txtC.Text = Convert.ToString(dtMOcard.Rows[0][11]);
            txtD.Text = Convert.ToString(dtMOcard.Rows[0][12]);
            txtE.Text = Convert.ToString(dtMOcard.Rows[0][13]);
            txtF.Text = Convert.ToString(dtMOcard.Rows[0][14]);
            txtWagin.Text = Convert.ToString(dtMOcard.Rows[0][15]);
            txtDueDate.Text = Convert.ToString(dtMOcard.Rows[0][1]);
            txtRlsDate.Text = Convert.ToString(dtMOcard.Rows[0][2]);
            txtRagin.Text = Convert.ToString(dtMOcard.Rows[0][37]);
            //select current agin in card agin list. specifically for upc scan.
            lstCard.SelectedValue = txtRagin.Text;

            txtLine.Text = Convert.ToString(dtMOcard.Rows[0][38]);
            txtManu.Text = "";
            txtTotRoute.Text = Convert.ToString(dtMOcard.Rows[0][16]);
            txtCardRoute.Text = Convert.ToString(dtMOcard.Rows[0][17]);
            txtTotQty.Text = Convert.ToString(dtMOcard.Rows[0][18]);
            txtGlue.Text = Convert.ToString(dtMOcard.Rows[0][19]);
            txtFold.Text = Convert.ToString(dtMOcard.Rows[0][21]);
            txtFlat.Text = Convert.ToString(dtMOcard.Rows[0][23]);
            txtOnSect.Text = Convert.ToString(dtMOcard.Rows[0][27]);
            txtShort.Text = Convert.ToString(dtMOcard.Rows[0][20]);
            txtFoldDesign.Text = Convert.ToString(dtMOcard.Rows[0][22]);
            txtFolded.Text = Convert.ToString(dtMOcard.Rows[0][25]);
            txtUPC.Text = Convert.ToString(dtMOcard.Rows[0][28]);
            long iOperSeq = Convert.ToInt64(dtMOcard.Rows[0][31]);
            string sType = Convert.ToString(dtMOcard.Rows[0][33]);

            long iTotQty = 0;
            if (dtMOcard.Rows[0][18] is DBNull)
            {
                iTotQty = 0;
            }
            else
            {
                iTotQty = Convert.ToInt64(dtMOcard.Rows[0][18]);
            }


            //Execute store procedure that retrieves the components.
            var cmdSP2 = new AseCommand("p_cis_card_travel_mo_cmpt", con);

            cmdSP2.CommandType = CommandType.StoredProcedure;
            cmdSP2.Connection = con;
            cmdSP2.Parameters.AddWithValue("@i_part_key_card", iPK);

            var daMO2 = new AseDataAdapter(cmdSP2);
            daMO2.Fill(dtMO2);
            dgvComponent.DataSource = dtMO2;
            dgvComponent.Columns[0].Width = 150;
            dgvComponent.Columns[1].Width = 100;
            dgvComponent.Columns[2].Width = 250;
            dgvComponent.Columns[3].Width = 100;

            dgvComponent.Columns[0].HeaderText = "COMPONENT";
            dgvComponent.Columns[1].HeaderText = "AGIN";
            dgvComponent.Columns[2].HeaderText = "AGIN DESCRIPTION";
            dgvComponent.Columns[3].HeaderText = "SOURCE";

            //Execute store procedure that retrieves the details.
            var cmdSP3 = new AseCommand("p_cis_card_travel_mo_detail", con);

            cmdSP3.CommandType = CommandType.StoredProcedure;
            cmdSP3.Connection = con;
            cmdSP3.Parameters.AddWithValue("@i_part_key", iPK);
            cmdSP3.Parameters.AddWithValue("@jitl", iJITL);
            cmdSP3.Parameters.AddWithValue("@oper_seq", iOperSeq);
            cmdSP3.Parameters.AddWithValue("@type", sType);
            cmdSP3.Parameters.AddWithValue("@tfr_qty", iTotQty);

            var daMO3 = new AseDataAdapter(cmdSP3);
            daMO3.Fill(dtMO3);

            txtTagin.Text = Convert.ToString(dtMO3.Rows[0][4]);
            txtInPkg.Text = Convert.ToString(dtMO3.Rows[0][12]);
            txtInRtl.Text = Convert.ToString(dtMO3.Rows[0][15]);
            txtStore.Text = Convert.ToString(dtMO3.Rows[0][6]);
            txtPlant.Text = Convert.ToString(dtMO3.Rows[0][7]);
            txtNextOper.Text = Convert.ToString(dtMO3.Rows[0][10]);
            txtQty.Text = Convert.ToString(dtMO3.Rows[0][11]);
            txtCLCagin.Text = Convert.ToString(dtMO3.Rows[0][13]);
            txtPPcont.Text = Convert.ToString(dtMO3.Rows[0][16]);
            txtNbrIn.Text = Convert.ToString(dtMO3.Rows[0][12]) + " in";
            txtTaginBig.Text = Convert.ToString(dtMO3.Rows[0][4]);
            txtThdrBcode.Text = "#" + Convert.ToString(dtMO3.Rows[0][2]) + "#";

            cmdSP.Dispose();
            cmdSP2.Dispose();
            cmdSP3.Dispose();
             
            //Display the MO.
            panel1.Visible = true;
            panel3.Visible = true;
            tabControlMO.SelectedTab = tabMOcard;
            //MOpanelList[0].BringToFront();

            //Display the card pdf image
            string sAGIN = Convert.ToString(dtMOcard.Rows[0][37]);
            string sAGIN3 = sAGIN.Substring(0, 3);
            pdfCard.src = "";
            pdfCard.LoadFile(@"\\usoscs320\e_drive\Gracol PDF Done NEW\" + sAGIN3 + @"\" + sAGIN + @"\F" + sAGIN + @".pdf");
            pdfCard.setShowToolbar(false);
            pdfCard.setPageMode("");
            pdfCard.setView("Fit");
            //pdfCard.src = @"\\usoscs320\e_drive\Gracol PDF Done NEW\" + sAGIN3 + @"\" + sAGIN + @"\F" + sAGIN + @".pdf";
        }

        public void MOresetCard()
        {
            //clear out the MO.
            label25.Text = "";
            txtSheet.Text = "";
            txtPK.Text = "";
            txtJitl.Text = "";
            txtMktNbr.Text = "";
            txtDesign.Text = "";
            txtPKbarcode.Text = "";
            txtA.Text = "";
            txtB.Text = "";
            txtC.Text = "";
            txtD.Text = "";
            txtE.Text = "";
            txtF.Text = "";
            txtWagin.Text = "";
            txtDueDate.Text = "";
            txtRlsDate.Text = "";
            txtRagin.Text = "";
            txtLine.Text = "";
            txtManu.Text = "";
            txtTotRoute.Text = "";
            txtCardRoute.Text = "";
            txtTotQty.Text = "";
            txtGlue.Text = "";
            txtFold.Text = "";
            txtFlat.Text = "";
            txtOnSect.Text = "";
            txtShort.Text = "";
            txtFoldDesign.Text = "";
            txtFolded.Text = "";
            txtUPC.Text = "";

            txtTagin.Text = "";
            txtInPkg.Text = "";
            txtInRtl.Text = "";
            txtStore.Text = "";
            txtPlant.Text = "";
            txtNextOper.Text = "";
            txtQty.Text = "";
            txtCLCagin.Text = "";
            txtPPcont.Text = "";
            txtNbrIn.Text = "";
            txtTaginBig.Text = "";
            txtThdrBcode.Text = "";
        }

        public void MOresetSheet()
        {
            //display results
            txtMO2sheet.Text = "";
            txtMO2jitl.Text = "";
            txtMO2jitlduedate.Text = "";
            txtMO2lithoduedate.Text = "";
            txtMO2rlsdate.Text = "";
            txtMO2manuprty.Text = "";
            txtMO2nbrup.Text = "";
            txtMO2route.Text = "";
            txtMO2length.Text = "";
            txtMO2width.Text = "";
            txtMO2layout.Text = "";
            txtMO2form.Text = "";
            txtMO2agin.Text = "";
            txtMO2skid.Text = "";
            txtMO2litho.Text = "";
            txtMO2partkey.Text = "";
            txtMO2partkeybarcode.Text = "";
        }
    }
}

Open in new window

Hi coperations07,

No problem. Generally at EE you get your answers very very quickly but sometimes some questions just slip past the filters experts have set. It seems this is one of the incident.

I was thinking, can you replace the below line of code with pdfCard.src="";
this.pdfCard = new AxAcroPDFLib.AxAcroPDF();

Open in new window


Regards,
Chinmay.
I made this change in the designer. It is throwing a nullreferenceexception: Object reference not set to an instance of an object.

User generated image
I should have been more clear... BUT... designer's code should not be tempered with unless and until you absolutely know what you are doing.

Put this code on your form. Replace pdfCard.src ="" with the initialization code.
It's throwing an exception when I change that...
User generated image
I increased the control size and ran it again to maybe give a better idea of what it is doing.
First time I run it it is exactly like I need:
User generated image
Second time I run it the tool panel starts showing. It shows for any subsequent selections:
User generated image
Hi coperations07,

I just checked the initialization code for OCX and I see I did not catch this statement

            this.pdfCard.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("pdfCard.OcxState")));

Open in new window

That's the culprit for OCXState erorr.

Also can you do me a favor and change your code

pdfCard.setPageMode("");

Open in new window


to

pdfCard.setPageMode("none");

Open in new window


Regards,
Chinmay.
Hi Chinmay,

I changed the setPageMode, but still get the same result when I execute.

I added the OCX line after pdfCard.src = "";, but resource is not recognized. Do I need to place it somewhere else?

Thanks,
Dave
Hi Dave,

It should be placed exactly after

this.pdfCard = new AxAcroPDFLib.AxAcroPDF();
this.pdfCard.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("pdfCard.OcxState")));

Open in new window

The logic here is, we are initiating an new AcroPDF OCX Control and then we are setting it to a state that was provided in the designer(I am assuming its default state which seems to work when the app starts).

Regards,
Chinmay.
Hi Chinmay,

Thanks for your help with this. I really appreciate it.

I have the code you suggested to try in place. There is a problem with resources...

User generated image
Please provide proper namespace in your Mainform.cs.
The namespace is DDS.

Do I need to add that somewhere?
In the main form CS.
Sorry Chinmay, I am not sure what you are wanting me to do?
In the screenshot you have sent you see there is an option Show Potential fixes. Please click on that, it will give you the namespace to put.
Here's what it shows.
I selected the first one, but then it highlights GetObject as having a problem.

User generated image
In your frmMain.designer.cs, how many namespaces are included? can you share the namespaces please?
I believe DDS is the only namespace.

namespace DDS
{
    partial class frmMain
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            this.btnLoad = new System.Windows.Forms.Button();
            this.cboSheet = new System.Windows.Forms.ComboBox();
            this.lstCard = new System.Windows.Forms.ListBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.cboJitl = new System.Windows.Forms.ComboBox();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.cboSection = new System.Windows.Forms.ComboBox();
            this.gbxMO = new System.Windows.Forms.GroupBox();
            this.rbCard = new System.Windows.Forms.RadioButton();
            this.rbSection = new System.Windows.Forms.RadioButton();
            this.rbSheet = new System.Windows.Forms.RadioButton();
            this.dgvNotes = new System.Windows.Forms.DataGridView();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.btnMO = new System.Windows.Forms.Button();
            this.panel1 = new System.Windows.Forms.Panel();
            this.txtTaginBig = new System.Windows.Forms.TextBox();
            this.txtThdrBcode = new System.Windows.Forms.TextBox();
            this.txtNbrIn = new System.Windows.Forms.TextBox();
            this.txtPPcont = new System.Windows.Forms.TextBox();
            this.txtCLCagin = new System.Windows.Forms.TextBox();
            this.txtQty = new System.Windows.Forms.TextBox();
            this.txtNextOper = new System.Windows.Forms.TextBox();
            this.txtPlant = new System.Windows.Forms.TextBox();
            this.txtStore = new System.Windows.Forms.TextBox();
            this.txtInRtl = new System.Windows.Forms.TextBox();
            this.txtInPkg = new System.Windows.Forms.TextBox();
            this.txtTagin = new System.Windows.Forms.TextBox();
            this.label48 = new System.Windows.Forms.Label();
            this.label47 = new System.Windows.Forms.Label();
            this.label46 = new System.Windows.Forms.Label();
            this.label45 = new System.Windows.Forms.Label();
            this.label44 = new System.Windows.Forms.Label();
            this.label43 = new System.Windows.Forms.Label();
            this.label42 = new System.Windows.Forms.Label();
            this.label41 = new System.Windows.Forms.Label();
            this.label40 = new System.Windows.Forms.Label();
            this.dgvComponent = new System.Windows.Forms.DataGridView();
            this.txtUPC = new System.Windows.Forms.TextBox();
            this.label34 = new System.Windows.Forms.Label();
            this.txtFlat = new System.Windows.Forms.TextBox();
            this.label33 = new System.Windows.Forms.Label();
            this.txtShort = new System.Windows.Forms.TextBox();
            this.label32 = new System.Windows.Forms.Label();
            this.txtFoldDesign = new System.Windows.Forms.TextBox();
            this.label31 = new System.Windows.Forms.Label();
            this.txtFolded = new System.Windows.Forms.TextBox();
            this.label30 = new System.Windows.Forms.Label();
            this.txtOnSect = new System.Windows.Forms.TextBox();
            this.label29 = new System.Windows.Forms.Label();
            this.txtGlue = new System.Windows.Forms.TextBox();
            this.label28 = new System.Windows.Forms.Label();
            this.txtFold = new System.Windows.Forms.TextBox();
            this.label27 = new System.Windows.Forms.Label();
            this.panel2 = new System.Windows.Forms.Panel();
            this.txtTotRoute = new System.Windows.Forms.TextBox();
            this.txtCardRoute = new System.Windows.Forms.TextBox();
            this.label24 = new System.Windows.Forms.Label();
            this.label25 = new System.Windows.Forms.Label();
            this.txtTotQty = new System.Windows.Forms.TextBox();
            this.label26 = new System.Windows.Forms.Label();
            this.txtDueDate = new System.Windows.Forms.TextBox();
            this.label23 = new System.Windows.Forms.Label();
            this.txtRlsDate = new System.Windows.Forms.TextBox();
            this.label22 = new System.Windows.Forms.Label();
            this.txtRagin = new System.Windows.Forms.TextBox();
            this.label21 = new System.Windows.Forms.Label();
            this.txtLine = new System.Windows.Forms.TextBox();
            this.label20 = new System.Windows.Forms.Label();
            this.txtManu = new System.Windows.Forms.TextBox();
            this.label19 = new System.Windows.Forms.Label();
            this.txtB = new System.Windows.Forms.TextBox();
            this.label18 = new System.Windows.Forms.Label();
            this.txtC = new System.Windows.Forms.TextBox();
            this.label17 = new System.Windows.Forms.Label();
            this.txtD = new System.Windows.Forms.TextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.txtE = new System.Windows.Forms.TextBox();
            this.label15 = new System.Windows.Forms.Label();
            this.txtF = new System.Windows.Forms.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.txtJitl = new System.Windows.Forms.TextBox();
            this.label13 = new System.Windows.Forms.Label();
            this.txtPKbarcode = new System.Windows.Forms.TextBox();
            this.label12 = new System.Windows.Forms.Label();
            this.txtWagin = new System.Windows.Forms.TextBox();
            this.txtA = new System.Windows.Forms.TextBox();
            this.txtDesign = new System.Windows.Forms.TextBox();
            this.txtMktNbr = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.txtPK = new System.Windows.Forms.TextBox();
            this.txtSheet = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.panel3 = new System.Windows.Forms.Panel();
            this.dgvMO2 = new System.Windows.Forms.DataGridView();
            this.txtMO2partkeybarcode = new System.Windows.Forms.TextBox();
            this.txtMO2partkey = new System.Windows.Forms.TextBox();
            this.txtMO2litho = new System.Windows.Forms.TextBox();
            this.txtMO2skid = new System.Windows.Forms.TextBox();
            this.txtMO2agin = new System.Windows.Forms.TextBox();
            this.txtMO2form = new System.Windows.Forms.TextBox();
            this.label38 = new System.Windows.Forms.Label();
            this.label37 = new System.Windows.Forms.Label();
            this.label36 = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.txtMO2layout = new System.Windows.Forms.TextBox();
            this.txtMO2width = new System.Windows.Forms.TextBox();
            this.txtMO2length = new System.Windows.Forms.TextBox();
            this.txtMO2route = new System.Windows.Forms.TextBox();
            this.txtMO2nbrup = new System.Windows.Forms.TextBox();
            this.txtMO2manuprty = new System.Windows.Forms.TextBox();
            this.txtMO2rlsdate = new System.Windows.Forms.TextBox();
            this.txtMO2lithoduedate = new System.Windows.Forms.TextBox();
            this.txtMO2jitlduedate = new System.Windows.Forms.TextBox();
            this.txtMO2jitl = new System.Windows.Forms.TextBox();
            this.txtMO2sheet = new System.Windows.Forms.TextBox();
            this.txtUPCscan = new System.Windows.Forms.TextBox();
            this.label39 = new System.Windows.Forms.Label();
            this.panel4 = new System.Windows.Forms.Panel();
            this.dgvUPC = new System.Windows.Forms.DataGridView();
            this.tabControlMO = new System.Windows.Forms.TabControl();
            this.tabSheetMO = new System.Windows.Forms.TabPage();
            this.tabMOcard = new System.Windows.Forms.TabPage();
            this.pdfCard = new AxAcroPDFLib.AxAcroPDF();
            this.gbxMO.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvNotes)).BeginInit();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvComponent)).BeginInit();
            this.panel2.SuspendLayout();
            this.panel3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvMO2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvUPC)).BeginInit();
            this.tabControlMO.SuspendLayout();
            this.tabSheetMO.SuspendLayout();
            this.tabMOcard.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pdfCard)).BeginInit();
            this.SuspendLayout();
            // 
            // btnLoad
            // 
            this.btnLoad.Location = new System.Drawing.Point(101, 40);
            this.btnLoad.Name = "btnLoad";
            this.btnLoad.Size = new System.Drawing.Size(75, 23);
            this.btnLoad.TabIndex = 0;
            this.btnLoad.Text = "Load";
            this.btnLoad.UseVisualStyleBackColor = true;
            this.btnLoad.Visible = false;
            this.btnLoad.Click += new System.EventHandler(this.btnMO_Click);
            // 
            // cboSheet
            // 
            this.cboSheet.FormattingEnabled = true;
            this.cboSheet.Location = new System.Drawing.Point(12, 139);
            this.cboSheet.Name = "cboSheet";
            this.cboSheet.Size = new System.Drawing.Size(121, 21);
            this.cboSheet.TabIndex = 1;
            this.cboSheet.SelectedIndexChanged += new System.EventHandler(this.cboSheet_SelectedIndexChanged);
            // 
            // lstCard
            // 
            this.lstCard.FormattingEnabled = true;
            this.lstCard.Location = new System.Drawing.Point(15, 231);
            this.lstCard.Name = "lstCard";
            this.lstCard.Size = new System.Drawing.Size(120, 95);
            this.lstCard.TabIndex = 2;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 123);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(43, 13);
            this.label1.TabIndex = 3;
            this.label1.Text = "SHEET";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 215);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(37, 13);
            this.label2.TabIndex = 4;
            this.label2.Text = "CARD";
            // 
            // cboJitl
            // 
            this.cboJitl.FormattingEnabled = true;
            this.cboJitl.Location = new System.Drawing.Point(15, 42);
            this.cboJitl.Name = "cboJitl";
            this.cboJitl.Size = new System.Drawing.Size(53, 21);
            this.cboJitl.TabIndex = 5;
            this.cboJitl.SelectedIndexChanged += new System.EventHandler(this.cboJitl_SelectedIndexChanged);
            this.cboJitl.SelectionChangeCommitted += new System.EventHandler(this.cboJitl_SelectionChangeCommitted);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(18, 26);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(28, 13);
            this.label3.TabIndex = 6;
            this.label3.Text = "JITL";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(12, 570);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(44, 13);
            this.label4.TabIndex = 9;
            this.label4.Text = "NOTES";
            this.label4.Visible = false;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(12, 169);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(54, 13);
            this.label5.TabIndex = 11;
            this.label5.Text = "SECTION";
            // 
            // cboSection
            // 
            this.cboSection.FormattingEnabled = true;
            this.cboSection.Location = new System.Drawing.Point(12, 185);
            this.cboSection.Name = "cboSection";
            this.cboSection.Size = new System.Drawing.Size(121, 21);
            this.cboSection.TabIndex = 10;
            this.cboSection.SelectedIndexChanged += new System.EventHandler(this.cboSection_SelectedIndexChanged);
            // 
            // gbxMO
            // 
            this.gbxMO.Controls.Add(this.rbCard);
            this.gbxMO.Controls.Add(this.rbSection);
            this.gbxMO.Controls.Add(this.rbSheet);
            this.gbxMO.Location = new System.Drawing.Point(195, 120);
            this.gbxMO.Name = "gbxMO";
            this.gbxMO.Size = new System.Drawing.Size(75, 100);
            this.gbxMO.TabIndex = 12;
            this.gbxMO.TabStop = false;
            this.gbxMO.Text = "MO Type";
            // 
            // rbCard
            // 
            this.rbCard.AutoSize = true;
            this.rbCard.Location = new System.Drawing.Point(7, 64);
            this.rbCard.Name = "rbCard";
            this.rbCard.Size = new System.Drawing.Size(47, 17);
            this.rbCard.TabIndex = 2;
            this.rbCard.TabStop = true;
            this.rbCard.Text = "Card";
            this.rbCard.UseVisualStyleBackColor = true;
            // 
            // rbSection
            // 
            this.rbSection.AutoSize = true;
            this.rbSection.Location = new System.Drawing.Point(6, 41);
            this.rbSection.Name = "rbSection";
            this.rbSection.Size = new System.Drawing.Size(61, 17);
            this.rbSection.TabIndex = 1;
            this.rbSection.TabStop = true;
            this.rbSection.Text = "Section";
            this.rbSection.UseVisualStyleBackColor = true;
            // 
            // rbSheet
            // 
            this.rbSheet.AutoSize = true;
            this.rbSheet.Checked = true;
            this.rbSheet.Location = new System.Drawing.Point(6, 20);
            this.rbSheet.Name = "rbSheet";
            this.rbSheet.Size = new System.Drawing.Size(53, 17);
            this.rbSheet.TabIndex = 0;
            this.rbSheet.TabStop = true;
            this.rbSheet.Text = "Sheet";
            this.rbSheet.UseVisualStyleBackColor = true;
            // 
            // dgvNotes
            // 
            this.dgvNotes.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvNotes.Location = new System.Drawing.Point(15, 590);
            this.dgvNotes.Name = "dgvNotes";
            this.dgvNotes.Size = new System.Drawing.Size(240, 138);
            this.dgvNotes.TabIndex = 13;
            this.dgvNotes.Visible = false;
            // 
            // button1
            // 
            this.button1.Location = new System.Drawing.Point(180, 247);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 14;
            this.button1.Text = "button1";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Visible = false;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // button2
            // 
            this.button2.Location = new System.Drawing.Point(174, 286);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(75, 23);
            this.button2.TabIndex = 15;
            this.button2.Text = "button2";
            this.button2.UseVisualStyleBackColor = true;
            this.button2.Visible = false;
            this.button2.Click += new System.EventHandler(this.button2_Click);
            // 
            // btnMO
            // 
            this.btnMO.Location = new System.Drawing.Point(195, 38);
            this.btnMO.Name = "btnMO";
            this.btnMO.Size = new System.Drawing.Size(75, 23);
            this.btnMO.TabIndex = 16;
            this.btnMO.Text = "View MO";
            this.btnMO.UseVisualStyleBackColor = true;
            this.btnMO.Click += new System.EventHandler(this.btnMO_Click);
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.SystemColors.ButtonHighlight;
            this.panel1.Controls.Add(this.txtTaginBig);
            this.panel1.Controls.Add(this.txtThdrBcode);
            this.panel1.Controls.Add(this.txtNbrIn);
            this.panel1.Controls.Add(this.txtPPcont);
            this.panel1.Controls.Add(this.txtCLCagin);
            this.panel1.Controls.Add(this.txtQty);
            this.panel1.Controls.Add(this.txtNextOper);
            this.panel1.Controls.Add(this.txtPlant);
            this.panel1.Controls.Add(this.txtStore);
            this.panel1.Controls.Add(this.txtInRtl);
            this.panel1.Controls.Add(this.txtInPkg);
            this.panel1.Controls.Add(this.txtTagin);
            this.panel1.Controls.Add(this.label48);
            this.panel1.Controls.Add(this.label47);
            this.panel1.Controls.Add(this.label46);
            this.panel1.Controls.Add(this.label45);
            this.panel1.Controls.Add(this.label44);
            this.panel1.Controls.Add(this.label43);
            this.panel1.Controls.Add(this.label42);
            this.panel1.Controls.Add(this.label41);
            this.panel1.Controls.Add(this.label40);
            this.panel1.Controls.Add(this.dgvComponent);
            this.panel1.Controls.Add(this.txtUPC);
            this.panel1.Controls.Add(this.label34);
            this.panel1.Controls.Add(this.txtFlat);
            this.panel1.Controls.Add(this.label33);
            this.panel1.Controls.Add(this.txtShort);
            this.panel1.Controls.Add(this.label32);
            this.panel1.Controls.Add(this.txtFoldDesign);
            this.panel1.Controls.Add(this.label31);
            this.panel1.Controls.Add(this.txtFolded);
            this.panel1.Controls.Add(this.label30);
            this.panel1.Controls.Add(this.txtOnSect);
            this.panel1.Controls.Add(this.label29);
            this.panel1.Controls.Add(this.txtGlue);
            this.panel1.Controls.Add(this.label28);
            this.panel1.Controls.Add(this.txtFold);
            this.panel1.Controls.Add(this.label27);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Controls.Add(this.txtDueDate);
            this.panel1.Controls.Add(this.label23);
            this.panel1.Controls.Add(this.txtRlsDate);
            this.panel1.Controls.Add(this.label22);
            this.panel1.Controls.Add(this.txtRagin);
            this.panel1.Controls.Add(this.label21);
            this.panel1.Controls.Add(this.txtLine);
            this.panel1.Controls.Add(this.label20);
            this.panel1.Controls.Add(this.txtManu);
            this.panel1.Controls.Add(this.label19);
            this.panel1.Controls.Add(this.txtB);
            this.panel1.Controls.Add(this.label18);
            this.panel1.Controls.Add(this.txtC);
            this.panel1.Controls.Add(this.label17);
            this.panel1.Controls.Add(this.txtD);
            this.panel1.Controls.Add(this.label16);
            this.panel1.Controls.Add(this.txtE);
            this.panel1.Controls.Add(this.label15);
            this.panel1.Controls.Add(this.txtF);
            this.panel1.Controls.Add(this.label14);
            this.panel1.Controls.Add(this.txtJitl);
            this.panel1.Controls.Add(this.label13);
            this.panel1.Controls.Add(this.txtPKbarcode);
            this.panel1.Controls.Add(this.label12);
            this.panel1.Controls.Add(this.txtWagin);
            this.panel1.Controls.Add(this.txtA);
            this.panel1.Controls.Add(this.txtDesign);
            this.panel1.Controls.Add(this.txtMktNbr);
            this.panel1.Controls.Add(this.label11);
            this.panel1.Controls.Add(this.label10);
            this.panel1.Controls.Add(this.label9);
            this.panel1.Controls.Add(this.label8);
            this.panel1.Controls.Add(this.txtPK);
            this.panel1.Controls.Add(this.txtSheet);
            this.panel1.Controls.Add(this.label7);
            this.panel1.Controls.Add(this.label6);
            this.panel1.Location = new System.Drawing.Point(6, 3);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(639, 702);
            this.panel1.TabIndex = 17;
            // 
            // txtTaginBig
            // 
            this.txtTaginBig.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtTaginBig.Location = new System.Drawing.Point(25, 649);
            this.txtTaginBig.Name = "txtTaginBig";
            this.txtTaginBig.Size = new System.Drawing.Size(158, 35);
            this.txtTaginBig.TabIndex = 74;
            // 
            // txtThdrBcode
            // 
            this.txtThdrBcode.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtThdrBcode.Font = new System.Drawing.Font("Code39EightText", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtThdrBcode.Location = new System.Drawing.Point(284, 649);
            this.txtThdrBcode.Name = "txtThdrBcode";
            this.txtThdrBcode.Size = new System.Drawing.Size(279, 48);
            this.txtThdrBcode.TabIndex = 73;
            this.txtThdrBcode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            // 
            // txtNbrIn
            // 
            this.txtNbrIn.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtNbrIn.Location = new System.Drawing.Point(543, 19);
            this.txtNbrIn.Name = "txtNbrIn";
            this.txtNbrIn.Size = new System.Drawing.Size(48, 29);
            this.txtNbrIn.TabIndex = 72;
            // 
            // txtPPcont
            // 
            this.txtPPcont.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtPPcont.ForeColor = System.Drawing.SystemColors.Window;
            this.txtPPcont.Location = new System.Drawing.Point(528, 613);
            this.txtPPcont.Name = "txtPPcont";
            this.txtPPcont.Size = new System.Drawing.Size(78, 20);
            this.txtPPcont.TabIndex = 71;
            // 
            // txtCLCagin
            // 
            this.txtCLCagin.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtCLCagin.ForeColor = System.Drawing.SystemColors.Window;
            this.txtCLCagin.Location = new System.Drawing.Point(455, 613);
            this.txtCLCagin.Name = "txtCLCagin";
            this.txtCLCagin.Size = new System.Drawing.Size(73, 20);
            this.txtCLCagin.TabIndex = 70;
            // 
            // txtQty
            // 
            this.txtQty.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtQty.ForeColor = System.Drawing.SystemColors.Window;
            this.txtQty.Location = new System.Drawing.Point(396, 613);
            this.txtQty.Name = "txtQty";
            this.txtQty.Size = new System.Drawing.Size(60, 20);
            this.txtQty.TabIndex = 69;
            // 
            // txtNextOper
            // 
            this.txtNextOper.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtNextOper.ForeColor = System.Drawing.SystemColors.Window;
            this.txtNextOper.Location = new System.Drawing.Point(320, 613);
            this.txtNextOper.Name = "txtNextOper";
            this.txtNextOper.Size = new System.Drawing.Size(78, 20);
            this.txtNextOper.TabIndex = 68;
            // 
            // txtPlant
            // 
            this.txtPlant.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtPlant.ForeColor = System.Drawing.SystemColors.Window;
            this.txtPlant.Location = new System.Drawing.Point(266, 613);
            this.txtPlant.Name = "txtPlant";
            this.txtPlant.Size = new System.Drawing.Size(55, 20);
            this.txtPlant.TabIndex = 67;
            // 
            // txtStore
            // 
            this.txtStore.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtStore.ForeColor = System.Drawing.SystemColors.Window;
            this.txtStore.Location = new System.Drawing.Point(217, 613);
            this.txtStore.Name = "txtStore";
            this.txtStore.Size = new System.Drawing.Size(51, 20);
            this.txtStore.TabIndex = 66;
            // 
            // txtInRtl
            // 
            this.txtInRtl.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtInRtl.ForeColor = System.Drawing.SystemColors.Window;
            this.txtInRtl.Location = new System.Drawing.Point(159, 613);
            this.txtInRtl.Name = "txtInRtl";
            this.txtInRtl.Size = new System.Drawing.Size(60, 20);
            this.txtInRtl.TabIndex = 65;
            // 
            // txtInPkg
            // 
            this.txtInPkg.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtInPkg.ForeColor = System.Drawing.SystemColors.Window;
            this.txtInPkg.Location = new System.Drawing.Point(102, 613);
            this.txtInPkg.Name = "txtInPkg";
            this.txtInPkg.Size = new System.Drawing.Size(59, 20);
            this.txtInPkg.TabIndex = 64;
            // 
            // txtTagin
            // 
            this.txtTagin.BackColor = System.Drawing.SystemColors.WindowText;
            this.txtTagin.ForeColor = System.Drawing.SystemColors.Window;
            this.txtTagin.Location = new System.Drawing.Point(25, 613);
            this.txtTagin.Name = "txtTagin";
            this.txtTagin.Size = new System.Drawing.Size(78, 20);
            this.txtTagin.TabIndex = 63;
            // 
            // label48
            // 
            this.label48.Location = new System.Drawing.Point(528, 582);
            this.label48.Name = "label48";
            this.label48.Size = new System.Drawing.Size(66, 28);
            this.label48.TabIndex = 62;
            this.label48.Text = "PKG PER CONTR";
            // 
            // label47
            // 
            this.label47.Location = new System.Drawing.Point(456, 582);
            this.label47.Name = "label47";
            this.label47.Size = new System.Drawing.Size(66, 28);
            this.label47.TabIndex = 61;
            this.label47.Text = "CLC AGIN";
            // 
            // label46
            // 
            this.label46.Location = new System.Drawing.Point(408, 582);
            this.label46.Name = "label46";
            this.label46.Size = new System.Drawing.Size(42, 28);
            this.label46.TabIndex = 60;
            this.label46.Text = "QTY";
            // 
            // label45
            // 
            this.label45.Location = new System.Drawing.Point(331, 582);
            this.label45.Name = "label45";
            this.label45.Size = new System.Drawing.Size(71, 28);
            this.label45.TabIndex = 59;
            this.label45.Text = "NEXT OPERATION";
            // 
            // label44
            // 
            this.label44.Location = new System.Drawing.Point(274, 582);
            this.label44.Name = "label44";
            this.label44.Size = new System.Drawing.Size(51, 28);
            this.label44.TabIndex = 58;
            this.label44.Text = "DEST PLANT";
            // 
            // label43
            // 
            this.label43.Location = new System.Drawing.Point(217, 582);
            this.label43.Name = "label43";
            this.label43.Size = new System.Drawing.Size(51, 28);
            this.label43.TabIndex = 57;
            this.label43.Text = "STORES LEVEL";
            // 
            // label42
            // 
            this.label42.Location = new System.Drawing.Point(166, 582);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(44, 28);
            this.label42.TabIndex = 56;
            this.label42.Text = "NUMIN RTL";
            // 
            // label41
            // 
            this.label41.Location = new System.Drawing.Point(106, 582);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(55, 28);
            this.label41.TabIndex = 55;
            this.label41.Text = "NUMIN PKG";
            // 
            // label40
            // 
            this.label40.Location = new System.Drawing.Point(22, 582);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(66, 28);
            this.label40.TabIndex = 54;
            this.label40.Text = "TRANSFER AGIN#";
            // 
            // dgvComponent
            // 
            this.dgvComponent.AllowUserToAddRows = false;
            this.dgvComponent.AllowUserToDeleteRows = false;
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.dgvComponent.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
            this.dgvComponent.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
            this.dgvComponent.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvComponent.GridColor = System.Drawing.SystemColors.ButtonHighlight;
            this.dgvComponent.Location = new System.Drawing.Point(21, 492);
            this.dgvComponent.Name = "dgvComponent";
            this.dgvComponent.ReadOnly = true;
            this.dgvComponent.RowHeadersVisible = false;
            this.dgvComponent.RowHeadersWidth = 10;
            this.dgvComponent.ScrollBars = System.Windows.Forms.ScrollBars.None;
            this.dgvComponent.Size = new System.Drawing.Size(573, 87);
            this.dgvComponent.TabIndex = 53;
            // 
            // txtUPC
            // 
            this.txtUPC.Location = new System.Drawing.Point(284, 470);
            this.txtUPC.Name = "txtUPC";
            this.txtUPC.Size = new System.Drawing.Size(310, 20);
            this.txtUPC.TabIndex = 52;
            // 
            // label34
            // 
            this.label34.AutoSize = true;
            this.label34.Location = new System.Drawing.Point(205, 473);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(32, 13);
            this.label34.TabIndex = 51;
            this.label34.Text = "UPC:";
            // 
            // txtFlat
            // 
            this.txtFlat.Location = new System.Drawing.Point(100, 440);
            this.txtFlat.Name = "txtFlat";
            this.txtFlat.Size = new System.Drawing.Size(99, 20);
            this.txtFlat.TabIndex = 50;
            // 
            // label33
            // 
            this.label33.AutoSize = true;
            this.label33.Location = new System.Drawing.Point(14, 441);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(36, 13);
            this.label33.TabIndex = 49;
            this.label33.Text = "FLAT:";
            // 
            // txtShort
            // 
            this.txtShort.Location = new System.Drawing.Point(284, 389);
            this.txtShort.Name = "txtShort";
            this.txtShort.Size = new System.Drawing.Size(310, 20);
            this.txtShort.TabIndex = 48;
            // 
            // label32
            // 
            this.label32.AutoSize = true;
            this.label32.Location = new System.Drawing.Point(205, 392);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(48, 13);
            this.label32.TabIndex = 47;
            this.label32.Text = "SHORT:";
            // 
            // txtFoldDesign
            // 
            this.txtFoldDesign.Location = new System.Drawing.Point(284, 415);
            this.txtFoldDesign.Name = "txtFoldDesign";
            this.txtFoldDesign.Size = new System.Drawing.Size(310, 20);
            this.txtFoldDesign.TabIndex = 46;
            // 
            // label31
            // 
            this.label31.AutoSize = true;
            this.label31.Location = new System.Drawing.Point(205, 418);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(82, 13);
            this.label31.TabIndex = 45;
            this.label31.Text = "FOLD DESIGN:";
            // 
            // txtFolded
            // 
            this.txtFolded.Location = new System.Drawing.Point(284, 440);
            this.txtFolded.Name = "txtFolded";
            this.txtFolded.Size = new System.Drawing.Size(310, 20);
            this.txtFolded.TabIndex = 44;
            // 
            // label30
            // 
            this.label30.AutoSize = true;
            this.label30.Location = new System.Drawing.Point(205, 444);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(53, 13);
            this.label30.TabIndex = 43;
            this.label30.Text = "FOLDED:";
            // 
            // txtOnSect
            // 
            this.txtOnSect.Location = new System.Drawing.Point(100, 466);
            this.txtOnSect.Name = "txtOnSect";
            this.txtOnSect.Size = new System.Drawing.Size(99, 20);
            this.txtOnSect.TabIndex = 42;
            // 
            // label29
            // 
            this.label29.AutoSize = true;
            this.label29.Location = new System.Drawing.Point(14, 470);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(83, 13);
            this.label29.TabIndex = 41;
            this.label29.Text = "ON SECTIONS:";
            // 
            // txtGlue
            // 
            this.txtGlue.Location = new System.Drawing.Point(100, 386);
            this.txtGlue.Name = "txtGlue";
            this.txtGlue.Size = new System.Drawing.Size(99, 20);
            this.txtGlue.TabIndex = 40;
            // 
            // label28
            // 
            this.label28.AutoSize = true;
            this.label28.Location = new System.Drawing.Point(14, 389);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(73, 13);
            this.label28.TabIndex = 39;
            this.label28.Text = "MACH GLUE:";
            // 
            // txtFold
            // 
            this.txtFold.Location = new System.Drawing.Point(100, 412);
            this.txtFold.Name = "txtFold";
            this.txtFold.Size = new System.Drawing.Size(99, 20);
            this.txtFold.TabIndex = 38;
            // 
            // label27
            // 
            this.label27.AutoSize = true;
            this.label27.Location = new System.Drawing.Point(14, 415);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(69, 13);
            this.label27.TabIndex = 37;
            this.label27.Text = "FOLD TYPE:";
            // 
            // panel2
            // 
            this.panel2.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel2.Controls.Add(this.txtTotRoute);
            this.panel2.Controls.Add(this.txtCardRoute);
            this.panel2.Controls.Add(this.label24);
            this.panel2.Controls.Add(this.label25);
            this.panel2.Controls.Add(this.txtTotQty);
            this.panel2.Controls.Add(this.label26);
            this.panel2.Location = new System.Drawing.Point(21, 292);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(589, 82);
            this.panel2.TabIndex = 36;
            // 
            // txtTotRoute
            // 
            this.txtTotRoute.Location = new System.Drawing.Point(120, 5);
            this.txtTotRoute.Name = "txtTotRoute";
            this.txtTotRoute.Size = new System.Drawing.Size(452, 20);
            this.txtTotRoute.TabIndex = 38;
            // 
            // txtCardRoute
            // 
            this.txtCardRoute.Location = new System.Drawing.Point(147, 31);
            this.txtCardRoute.Name = "txtCardRoute";
            this.txtCardRoute.Size = new System.Drawing.Size(425, 20);
            this.txtCardRoute.TabIndex = 40;
            // 
            // label24
            // 
            this.label24.AutoSize = true;
            this.label24.Location = new System.Drawing.Point(11, 12);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(86, 13);
            this.label24.TabIndex = 37;
            this.label24.Text = "TOTAL ROUTE:";
            // 
            // label25
            // 
            this.label25.AutoSize = true;
            this.label25.Location = new System.Drawing.Point(11, 38);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(116, 13);
            this.label25.TabIndex = 39;
            this.label25.Text = "CARD ROUTE IN JITL";
            // 
            // txtTotQty
            // 
            this.txtTotQty.Location = new System.Drawing.Point(120, 57);
            this.txtTotQty.Name = "txtTotQty";
            this.txtTotQty.Size = new System.Drawing.Size(452, 20);
            this.txtTotQty.TabIndex = 42;
            // 
            // label26
            // 
            this.label26.AutoSize = true;
            this.label26.Location = new System.Drawing.Point(11, 64);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(103, 13);
            this.label26.TabIndex = 41;
            this.label26.Text = "TOTAL QUANTITY:";
            // 
            // txtDueDate
            // 
            this.txtDueDate.Location = new System.Drawing.Point(109, 152);
            this.txtDueDate.Name = "txtDueDate";
            this.txtDueDate.Size = new System.Drawing.Size(167, 20);
            this.txtDueDate.TabIndex = 35;
            // 
            // label23
            // 
            this.label23.AutoSize = true;
            this.label23.Location = new System.Drawing.Point(14, 155);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(89, 13);
            this.label23.TabIndex = 34;
            this.label23.Text = "JITL DUE DATE:";
            // 
            // txtRlsDate
            // 
            this.txtRlsDate.Location = new System.Drawing.Point(109, 178);
            this.txtRlsDate.Name = "txtRlsDate";
            this.txtRlsDate.Size = new System.Drawing.Size(167, 20);
            this.txtRlsDate.TabIndex = 33;
            // 
            // label22
            // 
            this.label22.AutoSize = true;
            this.label22.Location = new System.Drawing.Point(14, 185);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(91, 13);
            this.label22.TabIndex = 32;
            this.label22.Text = "RELEASE DATE:";
            // 
            // txtRagin
            // 
            this.txtRagin.Location = new System.Drawing.Point(109, 204);
            this.txtRagin.Name = "txtRagin";
            this.txtRagin.Size = new System.Drawing.Size(167, 20);
            this.txtRagin.TabIndex = 31;
            // 
            // label21
            // 
            this.label21.AutoSize = true;
            this.label21.Location = new System.Drawing.Point(13, 207);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(77, 13);
            this.label21.TabIndex = 30;
            this.label21.Text = "RETAIL AGIN:";
            // 
            // txtLine
            // 
            this.txtLine.Location = new System.Drawing.Point(109, 230);
            this.txtLine.Name = "txtLine";
            this.txtLine.Size = new System.Drawing.Size(167, 20);
            this.txtLine.TabIndex = 29;
            // 
            // label20
            // 
            this.label20.AutoSize = true;
            this.label20.Location = new System.Drawing.Point(14, 237);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(90, 13);
            this.label20.TabIndex = 28;
            this.label20.Text = "PRODUCT LINE:";
            // 
            // txtManu
            // 
            this.txtManu.Location = new System.Drawing.Point(109, 258);
            this.txtManu.Name = "txtManu";
            this.txtManu.Size = new System.Drawing.Size(167, 20);
            this.txtManu.TabIndex = 27;
            // 
            // label19
            // 
            this.label19.AutoSize = true;
            this.label19.Location = new System.Drawing.Point(14, 265);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(74, 13);
            this.label19.TabIndex = 26;
            this.label19.Text = "MANU PRTY:";
            // 
            // txtB
            // 
            this.txtB.Location = new System.Drawing.Point(354, 114);
            this.txtB.Name = "txtB";
            this.txtB.Size = new System.Drawing.Size(29, 20);
            this.txtB.TabIndex = 25;
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Location = new System.Drawing.Point(365, 94);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(14, 13);
            this.label18.TabIndex = 24;
            this.label18.Text = "B";
            // 
            // txtC
            // 
            this.txtC.Location = new System.Drawing.Point(380, 114);
            this.txtC.Name = "txtC";
            this.txtC.Size = new System.Drawing.Size(29, 20);
            this.txtC.TabIndex = 23;
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(385, 94);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(14, 13);
            this.label17.TabIndex = 22;
            this.label17.Text = "C";
            // 
            // txtD
            // 
            this.txtD.Location = new System.Drawing.Point(408, 114);
            this.txtD.Name = "txtD";
            this.txtD.Size = new System.Drawing.Size(29, 20);
            this.txtD.TabIndex = 21;
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(419, 94);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(15, 13);
            this.label16.TabIndex = 20;
            this.label16.Text = "D";
            this.label16.Click += new System.EventHandler(this.label16_Click);
            // 
            // txtE
            // 
            this.txtE.Location = new System.Drawing.Point(434, 114);
            this.txtE.Name = "txtE";
            this.txtE.Size = new System.Drawing.Size(29, 20);
            this.txtE.TabIndex = 19;
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Location = new System.Drawing.Point(440, 94);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(14, 13);
            this.label15.TabIndex = 18;
            this.label15.Text = "E";
            // 
            // txtF
            // 
            this.txtF.Location = new System.Drawing.Point(459, 114);
            this.txtF.Name = "txtF";
            this.txtF.Size = new System.Drawing.Size(29, 20);
            this.txtF.TabIndex = 17;
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(465, 94);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(13, 13);
            this.label14.TabIndex = 16;
            this.label14.Text = "F";
            // 
            // txtJitl
            // 
            this.txtJitl.Location = new System.Drawing.Point(543, 54);
            this.txtJitl.Name = "txtJitl";
            this.txtJitl.Size = new System.Drawing.Size(34, 20);
            this.txtJitl.TabIndex = 15;
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(499, 57);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(38, 13);
            this.label13.TabIndex = 14;
            this.label13.Text = "JITL #";
            // 
            // txtPKbarcode
            // 
            this.txtPKbarcode.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtPKbarcode.Font = new System.Drawing.Font("Code39EightText", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtPKbarcode.Location = new System.Drawing.Point(194, 34);
            this.txtPKbarcode.Name = "txtPKbarcode";
            this.txtPKbarcode.Size = new System.Drawing.Size(299, 48);
            this.txtPKbarcode.TabIndex = 13;
            this.txtPKbarcode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label12.Location = new System.Drawing.Point(221, 9);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(233, 24);
            this.label12.TabIndex = 12;
            this.label12.Text = "USE TRANSFER PRINT";
            // 
            // txtWagin
            // 
            this.txtWagin.Location = new System.Drawing.Point(494, 114);
            this.txtWagin.Name = "txtWagin";
            this.txtWagin.Size = new System.Drawing.Size(100, 20);
            this.txtWagin.TabIndex = 11;
            // 
            // txtA
            // 
            this.txtA.Location = new System.Drawing.Point(328, 114);
            this.txtA.Name = "txtA";
            this.txtA.Size = new System.Drawing.Size(29, 20);
            this.txtA.TabIndex = 10;
            // 
            // txtDesign
            // 
            this.txtDesign.Location = new System.Drawing.Point(194, 114);
            this.txtDesign.Name = "txtDesign";
            this.txtDesign.Size = new System.Drawing.Size(116, 20);
            this.txtDesign.TabIndex = 9;
            // 
            // txtMktNbr
            // 
            this.txtMktNbr.Location = new System.Drawing.Point(16, 114);
            this.txtMktNbr.Name = "txtMktNbr";
            this.txtMktNbr.Size = new System.Drawing.Size(167, 20);
            this.txtMktNbr.TabIndex = 8;
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(506, 94);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(57, 13);
            this.label11.TabIndex = 7;
            this.label11.Text = "WIP AGIN";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(222, 94);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(73, 13);
            this.label10.TabIndex = 6;
            this.label10.Text = "ART DESIGN";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(334, 94);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(14, 13);
            this.label9.TabIndex = 5;
            this.label9.Text = "A";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(14, 94);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(102, 13);
            this.label8.TabIndex = 4;
            this.label8.Text = "MARKET NUMBER";
            // 
            // txtPK
            // 
            this.txtPK.Font = new System.Drawing.Font("Arial Narrow", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtPK.Location = new System.Drawing.Point(83, 48);
            this.txtPK.Name = "txtPK";
            this.txtPK.Size = new System.Drawing.Size(100, 20);
            this.txtPK.TabIndex = 3;
            // 
            // txtSheet
            // 
            this.txtSheet.Location = new System.Drawing.Point(83, 21);
            this.txtSheet.Name = "txtSheet";
            this.txtSheet.Size = new System.Drawing.Size(100, 20);
            this.txtSheet.TabIndex = 2;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(14, 48);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(60, 13);
            this.label7.TabIndex = 1;
            this.label7.Text = "PART KEY";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(14, 24);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(53, 13);
            this.label6.TabIndex = 0;
            this.label6.Text = "SHEET #";
            // 
            // panel3
            // 
            this.panel3.BackColor = System.Drawing.SystemColors.ButtonHighlight;
            this.panel3.Controls.Add(this.dgvMO2);
            this.panel3.Controls.Add(this.txtMO2partkeybarcode);
            this.panel3.Controls.Add(this.txtMO2partkey);
            this.panel3.Controls.Add(this.txtMO2litho);
            this.panel3.Controls.Add(this.txtMO2skid);
            this.panel3.Controls.Add(this.txtMO2agin);
            this.panel3.Controls.Add(this.txtMO2form);
            this.panel3.Controls.Add(this.label38);
            this.panel3.Controls.Add(this.label37);
            this.panel3.Controls.Add(this.label36);
            this.panel3.Controls.Add(this.label35);
            this.panel3.Controls.Add(this.txtMO2layout);
            this.panel3.Controls.Add(this.txtMO2width);
            this.panel3.Controls.Add(this.txtMO2length);
            this.panel3.Controls.Add(this.txtMO2route);
            this.panel3.Controls.Add(this.txtMO2nbrup);
            this.panel3.Controls.Add(this.txtMO2manuprty);
            this.panel3.Controls.Add(this.txtMO2rlsdate);
            this.panel3.Controls.Add(this.txtMO2lithoduedate);
            this.panel3.Controls.Add(this.txtMO2jitlduedate);
            this.panel3.Controls.Add(this.txtMO2jitl);
            this.panel3.Controls.Add(this.txtMO2sheet);
            this.panel3.Location = new System.Drawing.Point(6, 4);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(653, 697);
            this.panel3.TabIndex = 18;
            this.panel3.Visible = false;
            // 
            // dgvMO2
            // 
            this.dgvMO2.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
            this.dgvMO2.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.dgvMO2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvMO2.Location = new System.Drawing.Point(16, 511);
            this.dgvMO2.Name = "dgvMO2";
            this.dgvMO2.RowHeadersVisible = false;
            this.dgvMO2.Size = new System.Drawing.Size(670, 170);
            this.dgvMO2.TabIndex = 21;
            // 
            // txtMO2partkeybarcode
            // 
            this.txtMO2partkeybarcode.Font = new System.Drawing.Font("Code39AzaleaWide3", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtMO2partkeybarcode.Location = new System.Drawing.Point(121, 289);
            this.txtMO2partkeybarcode.Name = "txtMO2partkeybarcode";
            this.txtMO2partkeybarcode.Size = new System.Drawing.Size(174, 44);
            this.txtMO2partkeybarcode.TabIndex = 20;
            // 
            // txtMO2partkey
            // 
            this.txtMO2partkey.Location = new System.Drawing.Point(121, 263);
            this.txtMO2partkey.Name = "txtMO2partkey";
            this.txtMO2partkey.Size = new System.Drawing.Size(174, 20);
            this.txtMO2partkey.TabIndex = 19;
            // 
            // txtMO2litho
            // 
            this.txtMO2litho.Location = new System.Drawing.Point(425, 226);
            this.txtMO2litho.Name = "txtMO2litho";
            this.txtMO2litho.Size = new System.Drawing.Size(100, 20);
            this.txtMO2litho.TabIndex = 18;
            // 
            // txtMO2skid
            // 
            this.txtMO2skid.Location = new System.Drawing.Point(301, 224);
            this.txtMO2skid.Name = "txtMO2skid";
            this.txtMO2skid.Size = new System.Drawing.Size(100, 20);
            this.txtMO2skid.TabIndex = 17;
            // 
            // txtMO2agin
            // 
            this.txtMO2agin.Location = new System.Drawing.Point(195, 224);
            this.txtMO2agin.Name = "txtMO2agin";
            this.txtMO2agin.Size = new System.Drawing.Size(100, 20);
            this.txtMO2agin.TabIndex = 16;
            // 
            // txtMO2form
            // 
            this.txtMO2form.Location = new System.Drawing.Point(117, 226);
            this.txtMO2form.Name = "txtMO2form";
            this.txtMO2form.Size = new System.Drawing.Size(58, 20);
            this.txtMO2form.TabIndex = 15;
            // 
            // label38
            // 
            this.label38.AutoSize = true;
            this.label38.Location = new System.Drawing.Point(218, 206);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(33, 13);
            this.label38.TabIndex = 14;
            this.label38.Text = "AGIN";
            // 
            // label37
            // 
            this.label37.AutoSize = true;
            this.label37.Location = new System.Drawing.Point(298, 207);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(73, 13);
            this.label37.TabIndex = 13;
            this.label37.Text = "SKID COUNT";
            // 
            // label36
            // 
            this.label36.AutoSize = true;
            this.label36.Location = new System.Drawing.Point(422, 206);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(97, 13);
            this.label36.TabIndex = 12;
            this.label36.Text = "LITHO QUANTITY";
            // 
            // label35
            // 
            this.label35.AutoSize = true;
            this.label35.Location = new System.Drawing.Point(114, 206);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(38, 13);
            this.label35.TabIndex = 11;
            this.label35.Text = "FORM";
            // 
            // txtMO2layout
            // 
            this.txtMO2layout.Location = new System.Drawing.Point(121, 474);
            this.txtMO2layout.Name = "txtMO2layout";
            this.txtMO2layout.Size = new System.Drawing.Size(431, 20);
            this.txtMO2layout.TabIndex = 10;
            // 
            // txtMO2width
            // 
            this.txtMO2width.Location = new System.Drawing.Point(335, 432);
            this.txtMO2width.Name = "txtMO2width";
            this.txtMO2width.Size = new System.Drawing.Size(217, 20);
            this.txtMO2width.TabIndex = 9;
            // 
            // txtMO2length
            // 
            this.txtMO2length.Location = new System.Drawing.Point(121, 432);
            this.txtMO2length.Name = "txtMO2length";
            this.txtMO2length.Size = new System.Drawing.Size(200, 20);
            this.txtMO2length.TabIndex = 8;
            // 
            // txtMO2route
            // 
            this.txtMO2route.Location = new System.Drawing.Point(121, 394);
            this.txtMO2route.Name = "txtMO2route";
            this.txtMO2route.Size = new System.Drawing.Size(431, 20);
            this.txtMO2route.TabIndex = 7;
            // 
            // txtMO2nbrup
            // 
            this.txtMO2nbrup.Location = new System.Drawing.Point(121, 357);
            this.txtMO2nbrup.Name = "txtMO2nbrup";
            this.txtMO2nbrup.Size = new System.Drawing.Size(200, 20);
            this.txtMO2nbrup.TabIndex = 6;
            // 
            // txtMO2manuprty
            // 
            this.txtMO2manuprty.Location = new System.Drawing.Point(335, 121);
            this.txtMO2manuprty.Name = "txtMO2manuprty";
            this.txtMO2manuprty.Size = new System.Drawing.Size(217, 20);
            this.txtMO2manuprty.TabIndex = 5;
            // 
            // txtMO2rlsdate
            // 
            this.txtMO2rlsdate.Location = new System.Drawing.Point(335, 77);
            this.txtMO2rlsdate.Name = "txtMO2rlsdate";
            this.txtMO2rlsdate.Size = new System.Drawing.Size(217, 20);
            this.txtMO2rlsdate.TabIndex = 4;
            // 
            // txtMO2lithoduedate
            // 
            this.txtMO2lithoduedate.Location = new System.Drawing.Point(121, 121);
            this.txtMO2lithoduedate.Name = "txtMO2lithoduedate";
            this.txtMO2lithoduedate.Size = new System.Drawing.Size(200, 20);
            this.txtMO2lithoduedate.TabIndex = 3;
            // 
            // txtMO2jitlduedate
            // 
            this.txtMO2jitlduedate.Location = new System.Drawing.Point(121, 78);
            this.txtMO2jitlduedate.Name = "txtMO2jitlduedate";
            this.txtMO2jitlduedate.Size = new System.Drawing.Size(200, 20);
            this.txtMO2jitlduedate.TabIndex = 2;
            // 
            // txtMO2jitl
            // 
            this.txtMO2jitl.Location = new System.Drawing.Point(335, 34);
            this.txtMO2jitl.Name = "txtMO2jitl";
            this.txtMO2jitl.Size = new System.Drawing.Size(217, 20);
            this.txtMO2jitl.TabIndex = 1;
            // 
            // txtMO2sheet
            // 
            this.txtMO2sheet.Location = new System.Drawing.Point(121, 34);
            this.txtMO2sheet.Name = "txtMO2sheet";
            this.txtMO2sheet.Size = new System.Drawing.Size(200, 20);
            this.txtMO2sheet.TabIndex = 0;
            // 
            // txtUPCscan
            // 
            this.txtUPCscan.Location = new System.Drawing.Point(56, 80);
            this.txtUPCscan.Name = "txtUPCscan";
            this.txtUPCscan.Size = new System.Drawing.Size(214, 20);
            this.txtUPCscan.TabIndex = 19;
            this.txtUPCscan.TextChanged += new System.EventHandler(this.txtUPCscan_TextChanged);
            this.txtUPCscan.Leave += new System.EventHandler(this.txtUPCscan_Leave);
            // 
            // label39
            // 
            this.label39.AutoSize = true;
            this.label39.Location = new System.Drawing.Point(18, 80);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(32, 13);
            this.label39.TabIndex = 20;
            this.label39.Text = "UPC:";
            // 
            // panel4
            // 
            this.panel4.Location = new System.Drawing.Point(241, 336);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(29, 131);
            this.panel4.TabIndex = 21;
            // 
            // dgvUPC
            // 
            this.dgvUPC.AllowUserToAddRows = false;
            this.dgvUPC.AllowUserToDeleteRows = false;
            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.dgvUPC.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2;
            this.dgvUPC.BackgroundColor = System.Drawing.SystemColors.ButtonFace;
            this.dgvUPC.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.dgvUPC.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvUPC.Location = new System.Drawing.Point(15, 120);
            this.dgvUPC.Name = "dgvUPC";
            this.dgvUPC.RowHeadersVisible = false;
            this.dgvUPC.Size = new System.Drawing.Size(173, 150);
            this.dgvUPC.TabIndex = 0;
            this.dgvUPC.Visible = false;
            this.dgvUPC.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvUPC_CellMouseDoubleClick);
            // 
            // tabControlMO
            // 
            this.tabControlMO.Controls.Add(this.tabSheetMO);
            this.tabControlMO.Controls.Add(this.tabMOcard);
            this.tabControlMO.Location = new System.Drawing.Point(305, 12);
            this.tabControlMO.Name = "tabControlMO";
            this.tabControlMO.SelectedIndex = 0;
            this.tabControlMO.Size = new System.Drawing.Size(672, 733);
            this.tabControlMO.TabIndex = 22;
            // 
            // tabSheetMO
            // 
            this.tabSheetMO.Controls.Add(this.panel3);
            this.tabSheetMO.Location = new System.Drawing.Point(4, 22);
            this.tabSheetMO.Name = "tabSheetMO";
            this.tabSheetMO.Padding = new System.Windows.Forms.Padding(3);
            this.tabSheetMO.Size = new System.Drawing.Size(664, 707);
            this.tabSheetMO.TabIndex = 0;
            this.tabSheetMO.Text = "SHEET MO";
            this.tabSheetMO.UseVisualStyleBackColor = true;
            // 
            // tabMOcard
            // 
            this.tabMOcard.Controls.Add(this.panel1);
            this.tabMOcard.Location = new System.Drawing.Point(4, 22);
            this.tabMOcard.Name = "tabMOcard";
            this.tabMOcard.Padding = new System.Windows.Forms.Padding(3);
            this.tabMOcard.Size = new System.Drawing.Size(664, 707);
            this.tabMOcard.TabIndex = 1;
            this.tabMOcard.Text = "CARD MO";
            this.tabMOcard.UseVisualStyleBackColor = true;
            // 
            // pdfCard
            // 
            this.pdfCard.Enabled = true;
            this.pdfCard.Location = new System.Drawing.Point(231, 301);
            this.pdfCard.Name = "pdfCard";
            this.pdfCard.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("pdfCard.OcxState")));
            this.pdfCard.Size = new System.Drawing.Size(586, 427);
            this.pdfCard.TabIndex = 23;
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1016, 757);
            this.Controls.Add(this.pdfCard);
            this.Controls.Add(this.tabControlMO);
            this.Controls.Add(this.dgvUPC);
            this.Controls.Add(this.panel4);
            this.Controls.Add(this.label39);
            this.Controls.Add(this.txtUPCscan);
            this.Controls.Add(this.btnMO);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.dgvNotes);
            this.Controls.Add(this.gbxMO);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.cboSection);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.cboJitl);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.lstCard);
            this.Controls.Add(this.cboSheet);
            this.Controls.Add(this.btnLoad);
            this.Name = "frmMain";
            this.Text = "DDS ";
            this.Load += new System.EventHandler(this.frmMain_Load);
            this.gbxMO.ResumeLayout(false);
            this.gbxMO.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvNotes)).EndInit();
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvComponent)).EndInit();
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvMO2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvUPC)).EndInit();
            this.tabControlMO.ResumeLayout(false);
            this.tabSheetMO.ResumeLayout(false);
            this.tabMOcard.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pdfCard)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button btnLoad;
        private System.Windows.Forms.ComboBox cboSheet;
        private System.Windows.Forms.ListBox lstCard;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.ComboBox cboJitl;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.ComboBox cboSection;
        private System.Windows.Forms.GroupBox gbxMO;
        private System.Windows.Forms.RadioButton rbCard;
        private System.Windows.Forms.RadioButton rbSection;
        private System.Windows.Forms.RadioButton rbSheet;
        private System.Windows.Forms.DataGridView dgvNotes;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.Button btnMO;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.TextBox txtPK;
        private System.Windows.Forms.TextBox txtSheet;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.TextBox txtWagin;
        private System.Windows.Forms.TextBox txtA;
        private System.Windows.Forms.TextBox txtDesign;
        private System.Windows.Forms.TextBox txtMktNbr;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.TextBox txtJitl;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.TextBox txtPKbarcode;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.TextBox txtB;
        private System.Windows.Forms.Label label18;
        private System.Windows.Forms.TextBox txtC;
        private System.Windows.Forms.Label label17;
        private System.Windows.Forms.TextBox txtD;
        private System.Windows.Forms.Label label16;
        private System.Windows.Forms.TextBox txtE;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.TextBox txtF;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.TextBox txtTotRoute;
        private System.Windows.Forms.TextBox txtCardRoute;
        private System.Windows.Forms.Label label24;
        private System.Windows.Forms.Label label25;
        private System.Windows.Forms.TextBox txtTotQty;
        private System.Windows.Forms.Label label26;
        private System.Windows.Forms.TextBox txtDueDate;
        private System.Windows.Forms.Label label23;
        private System.Windows.Forms.TextBox txtRlsDate;
        private System.Windows.Forms.Label label22;
        private System.Windows.Forms.TextBox txtRagin;
        private System.Windows.Forms.Label label21;
        private System.Windows.Forms.TextBox txtLine;
        private System.Windows.Forms.Label label20;
        private System.Windows.Forms.TextBox txtManu;
        private System.Windows.Forms.Label label19;
        private System.Windows.Forms.TextBox txtUPC;
        private System.Windows.Forms.Label label34;
        private System.Windows.Forms.TextBox txtFlat;
        private System.Windows.Forms.Label label33;
        private System.Windows.Forms.TextBox txtShort;
        private System.Windows.Forms.Label label32;
        private System.Windows.Forms.TextBox txtFoldDesign;
        private System.Windows.Forms.Label label31;
        private System.Windows.Forms.TextBox txtFolded;
        private System.Windows.Forms.Label label30;
        private System.Windows.Forms.TextBox txtOnSect;
        private System.Windows.Forms.Label label29;
        private System.Windows.Forms.TextBox txtGlue;
        private System.Windows.Forms.Label label28;
        private System.Windows.Forms.TextBox txtFold;
        private System.Windows.Forms.Label label27;
        private System.Windows.Forms.DataGridView dgvComponent;
        private System.Windows.Forms.Panel panel3;
        private System.Windows.Forms.TextBox txtMO2manuprty;
        private System.Windows.Forms.TextBox txtMO2rlsdate;
        private System.Windows.Forms.TextBox txtMO2lithoduedate;
        private System.Windows.Forms.TextBox txtMO2jitlduedate;
        private System.Windows.Forms.TextBox txtMO2jitl;
        private System.Windows.Forms.TextBox txtMO2sheet;
        private System.Windows.Forms.TextBox txtMO2layout;
        private System.Windows.Forms.TextBox txtMO2width;
        private System.Windows.Forms.TextBox txtMO2length;
        private System.Windows.Forms.TextBox txtMO2route;
        private System.Windows.Forms.TextBox txtMO2nbrup;
        private System.Windows.Forms.TextBox txtMO2litho;
        private System.Windows.Forms.TextBox txtMO2skid;
        private System.Windows.Forms.TextBox txtMO2agin;
        private System.Windows.Forms.TextBox txtMO2form;
        private System.Windows.Forms.Label label38;
        private System.Windows.Forms.Label label37;
        private System.Windows.Forms.Label label36;
        private System.Windows.Forms.Label label35;
        private System.Windows.Forms.TextBox txtMO2partkeybarcode;
        private System.Windows.Forms.TextBox txtMO2partkey;
        private System.Windows.Forms.DataGridView dgvMO2;
        private System.Windows.Forms.TextBox txtUPCscan;
        private System.Windows.Forms.Label label39;
        private System.Windows.Forms.Panel panel4;
        private System.Windows.Forms.DataGridView dgvUPC;
        private System.Windows.Forms.TextBox txtPPcont;
        private System.Windows.Forms.TextBox txtCLCagin;
        private System.Windows.Forms.TextBox txtQty;
        private System.Windows.Forms.TextBox txtNextOper;
        private System.Windows.Forms.TextBox txtPlant;
        private System.Windows.Forms.TextBox txtStore;
        private System.Windows.Forms.TextBox txtInRtl;
        private System.Windows.Forms.TextBox txtInPkg;
        private System.Windows.Forms.TextBox txtTagin;
        private System.Windows.Forms.Label label48;
        private System.Windows.Forms.Label label47;
        private System.Windows.Forms.Label label46;
        private System.Windows.Forms.Label label45;
        private System.Windows.Forms.Label label44;
        private System.Windows.Forms.Label label43;
        private System.Windows.Forms.Label label42;
        private System.Windows.Forms.Label label41;
        private System.Windows.Forms.Label label40;
        private System.Windows.Forms.TextBox txtNbrIn;
        private System.Windows.Forms.TextBox txtTaginBig;
        private System.Windows.Forms.TextBox txtThdrBcode;
        private System.Windows.Forms.TabControl tabControlMO;
        private System.Windows.Forms.TabPage tabSheetMO;
        private System.Windows.Forms.TabPage tabMOcard;
        private AxAcroPDFLib.AxAcroPDF pdfCard;
    }
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry I just figured out, execCommand is not document nor supported to be used by external app developers.

Regards,
Chinmay.
Hi Chinmay,

Thanks again for all the time and help you've put into this. I made the change you suggested and the result is as you described. The pdf changes each time I select a new file. When I select the same file the panel appears. This should be workable. It is just for an industrial solution and nothing that has to be too pretty. I will continue to look for a way to select the same file multiple times without the panel appearing and please let me know if you come across something that might help.

Thanks,
David
Hi David,

Glad we could finally come to a conclusion. I think you could report this to Adobe and they might fix it someday in future. If you ask me it is definitely a product bug as the OCX is not honoring parameters we have passed. It is a different story if they would accept it but nothing wrong in raising the flag.

Regards,
Chinmay.