How to Verify Printer Status: Out of Paper Check: Difference between revisions

From wizarPOS
(Created page with "== Java API: queryStatus() == Generally, call this method to check whether paper existed before one time printing, if print a large receipt, perhaps need check after printing....")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Java API: queryStatus() ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/printer/verify-printer-paper-status}}
Generally, call this method to check whether paper existed before one time printing, if print a large receipt, perhaps need check after printing.
<syntaxhighlight lang="java" line='line'>
  device = (PrinterDevice) POSTerminal.getInstance(mContext).getDevice(POSTerminal.DEVICE_NAME_PRINTER);
  int result = device.queryStatus();
  device.close();
</syntaxhighlight>
 
result< 0 : error code;
 
result= 0 : out of paper;
 
result= 1 : has paper;

Latest revision as of 08:18, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/printer/verify-printer-paper-status

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!