setting printer options
-
how do i set printer options? i would like to set these options print from tray 1 pagesize 11x17 landscape this is the code i am using System.Drawing.Printing.PrintDocument pd = new System.Drawing.Printing.PrintDocument(); pd.PrinterSettings = printDialog1.PrinterSettings; pd.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex; pd.DocumentName = "JP Council (Title Page)"; pd.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.pd_PrintPage); pd.Print(); i know it has to be something with the printersettings but just now sure how to do it
Thanks, Chad Aiena
-
how do i set printer options? i would like to set these options print from tray 1 pagesize 11x17 landscape this is the code i am using System.Drawing.Printing.PrintDocument pd = new System.Drawing.Printing.PrintDocument(); pd.PrinterSettings = printDialog1.PrinterSettings; pd.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex; pd.DocumentName = "JP Council (Title Page)"; pd.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.pd_PrintPage); pd.Print(); i know it has to be something with the printersettings but just now sure how to do it
Thanks, Chad Aiena
use System.Drawing.Printing.PageSettings mySettings = new System.Drawing.Printing.PageSettings(); mySettings.PrinterSettings has everything you need. Then apply mySettings to the System.Drawing.Printing.PrintDocument instance your using.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)