Skip to content

๐Ÿ“ฆ Using Barcode 3of9 in Excel Print Files โ€“ Merciglobal Cloud ERP

This document outlines the steps required to implement and use the Barcode 3of9 font in Excel print files generated through the Merciglobal Cloud ERP system. This is particularly useful for representing data like item codes in machine-readable barcode format for easy scanning and warehouse operations.


โœ… Prerequisites

Before proceeding, ensure the following:

  • You have access to the Ubuntu server where Merciglobal Cloud ERP is hosted.
  • You are familiar with the Excel print file templates used in Merciglobal ERP.
  • You have the required font file: 3of9.ttf

๐Ÿ› ๏ธ Step-by-Step Implementation

1. ๐Ÿ“ Install Barcode 3of9 Font on Ubuntu Server

To ensure the barcode renders correctly in Excel exports, the font must be installed on the Ubuntu server:

# Copy the font to the system font directory
sudo cp /apis/fonts/3of9.ttf /usr/share/fonts/truetype/

# Update font cache
sudo fc-cache -f -v

๐Ÿ”Ž Font path in Merciglobal ERP: /apis/fonts/3of9.ttf


2. ๐Ÿ“„ Declare the Barcode Function in Excel Template

In the Excel print file template (used for invoice, item labels, etc.), insert the following function into the desired cell:

$b3of9($itemcode)

๐Ÿงฉ Where:

  • $b3of9() is the custom ERP function to convert text into a barcode-friendly string.
  • $itemcode is the dynamic field name used in the print form.

๐Ÿ‘‰ This function ensures the correct string formatting needed for 3of9 encoding.


3. ๐ŸŽจ Set the Cell Font to 3of9

After entering the function in the cell, apply the 3of9 font style:

  • Select the cell
  • Open Font settings in Excel
  • Choose 3of9 from the font list

This visual change transforms the rendered string into a barcode.

๐Ÿ“Œ Important: Ensure the barcode includes start and stop characters (*) which are automatically handled by $b3of9() in Merciglobal ERP.


๐Ÿงช Example Output in Excel

Field Function in Cell Displayed Barcode (with font applied)
Item Code $b3of9($itemcode) *ABC123* โ†’ rendered as barcode

๐Ÿ’ผ Use Cases in Merciglobal Cloud ERP

  • ๐Ÿท๏ธ Item Label Printing โ€“ Automatically generate barcodes on stock item labels.
  • ๐Ÿงพ Invoice Printing โ€“ Add barcodes to invoices for quick scanning.
  • ๐Ÿ“ฆ Warehouse Picking Lists โ€“ Speed up picking processes with barcoded SKUs.

๐Ÿ’ฌ Need Help?

If you need support implementing this feature:

  • Contact the Merciglobal ERP Support Team
  • Refer to internal developer documentation (Module: ExcelPrintHandler)

๐Ÿ“š Summary

Task Description
Font Installation /apis/fonts/3of9.ttf on Ubuntu
Excel Function $b3of9($itemcode)
Font Setting in Excel Cell Use 3of9 font

Leverage this setup to create efficient, scannable, and professional documents directly from your Merciglobal Cloud ERP environment.