I received following code to check if the printer is switched on or off

Please Login or Register  to view this content.
The function returns the same result if the printer is switched on or not
Is there an other code that I can use

Thanks