How to convert DLL into codebase TLB

By | May 10, 2022

We are familiar that Sage 300 ERP allows customization of the standard screens, which have a different OCX name than that of the standard name. Sage 300 comes with many features and modules to make users life easy ,  apart from that sage 300 can also be customized as per user needs and preferences, we can make many customizations into existing screens or create a new module as per user preference, whenever we perform any type of customization in Sage 300 which has new screen files and other dependent files and which needs to be used in project, but we cannot use these files directly hence we make the codebase TLB. Below are the steps to automatically register codebase TLB, you do not need to manually register codebase TLB.

For converting DLL to TLB for Document Attachment for standard version, you need to first check the bit version of DLL, to find bit version of DLL you need to follow below Sage 300 blog.

New Stuff:  AP Invoice Customization to Add Distribution lines at bottom

Follow below steps to convert DLL into Codebase TLB.

  • Find out the Bit version of the DLL File.
  • Open Command Prompt as “Run As Administrator”
  • Run the below commands.
  • CD C:\Windows\Microsoft.NET\Framework\v4.0.30319
  • regasm “C:\Sage\Sage300\runtime\EncodeDecodePass.dll” /tlb “C:\Sage\Sage300\runtime\EncodeDecodePass.tlb” \codebase

Explanation of commands.

  1. CD changes the directory path where REGASM is present.
  2. Regasm “Path where the DLL present” /tlb “Path where you want the new codebase TLB”  \codebase.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partner is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation competence.

Greytrix offers unique GUMU™ integrated solutions of  Sage 300 with Sage CRM, (listed on Salesforce Appexchange), Dynamics 365 CRM and Magento eCommerce along with Sage 300 Migration from Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works. We also offer best-in-class Sage 300 customization and development services and integration services for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and for Sage 300c development services we offer, upgrades of older codes and screens to new web screens, latest integrations using sData and web services  to Sage business partners, end users and Sage PSG worldwide.

Greytrix offers 20+ addons for Sage 300 to enhance productivity such as GreyMatrixDocument AttachmentDocument NumberingAuto-Bank ReconciliationPurchase Approval SystemThree way PO matchingBill of Lading and VAT for Middle East. The GUMU™ integration for Dynamics 365 CRM – Sage ERP is listed on Microsoft Appsource with easy implementation package.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

For more details on Sage 300 and Sage 300c Services, please contact us at, We will like to hear from you.