detecting media type using CPCL on QLn

Hi,

 

Is it possible to send the media type required for the print job as part of the CPCL commands to a QLn ?  What we are trying to achieve is if the user has loaded labels in the printer, and we are expecting to print a receipt, we would like the LCD on the printer to display an error, and then when the user changes the media, the printer will print the receipt.

 

If this is not possible, is it possible to query the QLn for the media type currently loaded in the printer ?

 

Thanks

Regards,

Asheesh