Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: How To (Forms, Reports, and more) > Reports and Labels > Technical Documents

Understanding PCC Labels

Scroll Prev Top Next More

The PCC Label control inserts a Printer Control Code (PCC) object within the report. The PCC Label will send any Printer or POS Cash Drawer code to control the features of your printer or any other device that accepts application codes. The PCC Label supports the following values to be entered into the Edit Toolbar, which displays the "Set Value" hint when a PCC Label is selected:

 

ABORTDOC - stops the current print job and erases everything the application has written to the device since the last ENDDOC

NEWFRAME - informs the printer that the application has finished writing to a page

ENDDOC - ends a print job

Escape Sequence: "nn nn nn ... nn", Example: 27 13 12 56

 

Another example of using a control code is if you must instruct your printer to open your cash drawer. In this case, you will need to enter the following code in the "Set Value" field in order to open the cash drawer before printing the receipt in an R:BASE Point of Sale system: 27 112 0 50 250

 

Notes:

 

The PCC Label control is specifically used for controlling "hardware" connected to the computer. It is not to be used to control the text font, size, and/or style for a report object, as was supported in legacy DOS versions of R:BASE. If you need to edit the text font, size, and/or style, you must use the Format Toolbar. To alter the text font, size, and/or style dynamically in code, you must use the PROPERTY command within Custom EEP specified within a Report Band.

 

All hardware PCC codes are only enforced when printing the report to a printer using the OPTION PRINTER parameter for the PRINT command.