70
addPageBegin
Adds the switching to page mode to the command buffer. The page mode process starts.
Syntax
public void addPageBegin() throws EposException
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Use this API function with addPageEnd (p.71).
Error status Description
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To print the characters "ABCDE" in page mode:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addPageBegin();
builder.addText("ABCDE");
builder.addPageEnd();
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}