c# - How to find printer status? -


i try write code finding status of printer print crystal reports in pdf format. have following doughts:

  1. how can fire code after click print button in crystal report? there events(lick click) check printer staus?

  2. 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..)?

  3. 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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -