The receipt printer is only available when the scanner is idle.
When Ranger is ready to feed, the printer can be used via the pass through method ScannerPrint.
const char* msg="Hello World!"; //string to print
CString Passthrough;
//Formatting the passthrough, "ScannerPrint(MessageAddress, MessageLength )"
Passthrough.Format("ScannerPrint(%ld,%d)",(unsigned long long)msg, strlen(msg));
Ranger.CallPassthroughMethod(Passthrough)