Using RayBarcode, we will explain how to generate barcodes and 2D codes based on data in Salesforce.
The picture above can be enlarged by clicking (tap).
See Barcode Types for a list of barcodes that RayBarcode can generate.
Developers can use Visualforce, Lightning components, Web API or SkyVisualEditor to display barcode images in Salesforce. In either method, the barcode image generated is the same. The options available for generating barcode images are the same.
Note that for Lightning components, you need to activate “My Domain”.
RayBarcode generates images on servers managed by MESCIUS outside of Salesforce. This is true for Visualforce, Lightning components, Web API or SkyVisualEditor. You need to register a remote site to allow your Salesforce organization to communicate with this server. The registration of the remote site is displayed to the system administrator when installing RayBarcode, and is registered automatically. Communication between the Salesforce and MESCIUS servers is cryptographically secure.
The token needs to be generated to authorize the remote site to be a legitimate connection. Appforce for Visualforce, Lightning Component and SkyVisualEditor automatically generates tokens and does not require the developer to be aware. You need to add the token generation process only when using the Web API.
AppComponents for Visualforce, Lightning Components and SkyVisualEditor display barcode images within the component, so there is no opportunity for developers to save to records or export barcode images to PDF. Please use Web API to do such processing.
You can check the remote site settings in the following steps.
Salesforce Classic :
Lightning Experience :
Barcodes and 2D codes generated by RayBarcode can also be used for printing. This document explains PDF output using Visualforce and an example of “スマレポ!”.
RayBarcode uses Shift-JIS as the default encoding format. You need to specify an option when using UTF-8. Please refer to Bar Code Options for details.
Reading function “RayKit app” can read Shift-JIS or UTF-8.