public void get_no_copies(string a) { //MessageBox.Show(printDoc.DocumentName); no_of_copies = a; printer_text_name = get_def_printer(); //MessageBox.Show("Printer will print "+no_of_copies+ "no of copies"); //Thread.Sleep(500); pr_settings.Copies = Int16.Parse(a); no_copies_flag = 1; try { MessageBox.Show("1-Your printer = " + get_text_defprinter + "\n" + "2-Document Path = " + file_path_text + "\n" + "3-Number of Copy= " + no_of_copies + "\n" + "4-Get_Text_Path= " + file_path_text); get_def_printer(); } catch (Exception ex) { MessageBox.Show("please give all attributes!!"); } pdlg.AllowPrintToFile = Enabled; pr_settings.Collate = Enabled; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)