Click here to Skip to main content
15,887,964 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
    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;

}
Posted
Comments
Richard MacCutchan 10-Nov-13 6:32am    
And your question is?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900