Exemple #1
0
        private void printBtn_Click(object sender, EventArgs e)
        {
            printCls _printCLS = new printCls(customerDatagridView, "Customer");

            _printCLS.PrintForm();
        }
Exemple #2
0
        //call to print to print the form
        // code taken from https://stackoverflow.com/questions/15853746/how-to-print-values-from-a-datagridview-control/15853845
        //first answer
        private void print_Click(object sender, EventArgs e)
        {
            printCls _printCLS = new printCls(stockDatagridVw, "Stock");

            _printCLS.PrintForm();
        }