T trint Jan 26, 2005 #1 My program must check printer status before sending a job. Does anyone have a clue? Thanks, Trint
L Landi Jan 26, 2005 #2 Are you opening the windows print dialog or you implementing your own print method?
T trint Jan 26, 2005 #3 Own print method: PrinterSettings printerSettings = new PrinterSettings(); printerSettings.MaximumPage = m_numberOfPages; printerSettings.MinimumPage = 1; printerSettings.PrintRange = PrintRange.SomePages; printerSettings.FromPage = 1; printerSettings.ToPage = m_numberOfPages; printerSettings.PrinterName = printerName; //printerSettings.PaperSources = "Tray 2"; PrintDocument pd = new PrintDocument(); m_currentPrintingPage = 1; m_lastPrintingPage = m_numberOfPages; pd.PrinterSettings = printerSettings; I think this is where it should go. But I'm not sure. Any help is appreciated. Thanks, Trint
Own print method: PrinterSettings printerSettings = new PrinterSettings(); printerSettings.MaximumPage = m_numberOfPages; printerSettings.MinimumPage = 1; printerSettings.PrintRange = PrintRange.SomePages; printerSettings.FromPage = 1; printerSettings.ToPage = m_numberOfPages; printerSettings.PrinterName = printerName; //printerSettings.PaperSources = "Tray 2"; PrintDocument pd = new PrintDocument(); m_currentPrintingPage = 1; m_lastPrintingPage = m_numberOfPages; pd.PrinterSettings = printerSettings; I think this is where it should go. But I'm not sure. Any help is appreciated. Thanks, Trint
L Landi Jan 26, 2005 #6 I am sure it's not. You should be able to replace the workingoffline string with what you want and it should work. Never tried though. Landi
I am sure it's not. You should be able to replace the workingoffline string with what you want and it should work. Never tried though. Landi