示例#1
0
        private void createPackingList()
        {
            clsPackingList objPackingList = new clsPackingList();

            objPackingList.RelayStatus += new SystemStatus(NewStatus);

            //Using Apache FOP, to create pdf
            RelayStatus("Creating Packing List");
            objPackingList.CreateFO("Incomplete Orders");

            // Printing pdf w/ FoxItReader
            RelayStatus("Sending Packing List to Printer");
            objPackingList.PrintPDF();
            objPackingList.PrintPDF();
        }
示例#2
0
        private void mnuRightClick_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            switch (e.ClickedItem.Text)
            {
            case "Print":
                clsPackingList objPackingList = new clsPackingList();
                objPackingList.returnPackingList(grdOrders[0, grdOrders.CurrentRow.Index].Value.ToString(), tabOrders.SelectedTab.Text);
                mnuRightClick.Close();
                MessageBox.Show("Your packing list has been sent to the printer");
                break;

            case "Void Order":
                VoidOrder();
                break;

            default:
                break;
            }

            mnuRightClick.Close();
            this.Cursor = Cursors.Default;
        }