c# - How to find printer status? -
i try write code finding status of printer print crystal reports in pdf format. have following doughts:
how can fire code after click print button in crystal report? there events(lick click) check printer staus?
what properties change when printer in different modes lid open, no paper, lidopen , no paper, swtch off, switch on, warmup ect.? numeric values returns? , there changes in return values different catagery printers(hp laser printes, canon ect..)?
how can display message "success" after successful printing of report?
pls, clarify one.
you can use system.management win32_printer class query printer information.
there win32_printjob, enumerate determine when given job completes. status
property may give additional granularity on printer status. can monitor creation , deletion of these objects - give new , completed job info.
other printer classes listed here.
Comments
Post a Comment