USPS::OneCode Bars Method
Syntax
.Bars as C (source as C)
Arguments
- source
Character
Description
Bars Method that generates appropriate characters for intelligent mail code.
Discussion
The required fonts have been added to the InstallationSupport folder. The example for generating a barcode on a bitmap in the interactive window is included.
Example
'Text = "72367219931914949452457875197" encodes the following data:
'Barcode ID: 72
'Service ID: 367
'Mailer ID: 219931914
'Serial #: 949452
'Zip code: 457875197
ui_bitmap_create("barcode",3,1)
ui_bitmap_draw("barcode",<<%code%
#set_brush("White")
#fill_rect(0,0,3,1)
#set_font("USPSIMBStandard,12")
#text(::USPS::OneCode::Bars("72367219931914949452457875197"),.25,.25)
#%code%)
ui_dlg_box("","{image_opaque=barcode}")