Monitoring Printer Devices in the Metro App
hello.
i'm daniel park , working software engineer.
i have questions background task on windows 8 monitor status of printing devices.
i've been testing background tasks metro ui because need implement monitoring metro app check printing status when user print out via installed printers. implement part, think background task can used polling printing devices , show toast messages if there critical errors firing triggers.
i've faced issues feasibility. initial plan think background task monitoring printer devices can fired timertrigger or sessionstart trigger , task running thread check device , show toast messages if there critical device errors. , it’s terminated if printing job finished checking device status.
first of all, minimum configuration of timertigger 15 min. cannot used monitor device in real time. if can use timertigger more specific time such 500 milliseconds, when printing fired, printer driver call background task monitor devices during printing. anyway, it’s impossible current implementation of windows 8.
second, try use sesstionstart trigger monitor printing device whenever starting user session, it's not working in c# example background task when trigger part changed , toast messages in background task. (it’s possible miss me). in detail, i've modified systemtrigger systemtriggertype.sessionstart , change notifications settings of toast capable no yes , lock screen notification "title text" "badge , tile text". , i've added code show toast message in background task toast message not showing after logging off , logging in again. if it’s possible monitor devices sessionstart, seems it’s not way because background task can running (if windows 8 keep alive).
i think best ways monitor printing device during printing windows 8 supports printing job status trigger system trigger such printingstart, printingcomplete or printerstatechange that make easier check printing device status during printing think running time background task purpose can optimized.
if above items impossible in metro app , environment, please let me know how implement different ways or workarounds such using communication between windows services (or normal daemon processes) , metro apps if possible.
i appreciated if me above issues.
hi daniel
you need author metro style printing app. please check out:
1) http://channel9.msdn.com/events/build/build2011/hw-652t - session build
2) slides point more reading resources including http://msdn.microsoft.com/library/windows/hardware/br259129
thanks
-jon
Archived Forums T-U > Tailoring your Windows Store app for hardware and devices (archived)
Comments
Post a Comment