How can I catch printer errors (eg, "out of paper", etc)?

  • Thread starter Thread starter trint
  • Start date Start date
T

trint

My program must check printer status before sending a job. Does anyone
have a clue?
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
 
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
 
Back
Top