Adding a “Reprint” Watermark to Labels in CODESOFT using Visual Basic
Target Audience: Advanced User
Article #: 9396
Summary
CODESOFT’s settings allow the user to add a “Reprint” watermark to labels as needed. However, users have complained that the default settings result in the word being too big, filling the label. As a result, the word obscures any text, barcodes or graphics that lie underneath, making the label unusable.
This article describes a method that serves as a workaround using a Visual Basic script. This solution applies to TEKLYNX CENTRAL 4.5 and 5.0.
Preparation
The user should be familiar with using Virtual Basic.
Instructions
Step 1 – Navigate to File > Properties.
Step 2 – Select Visual Basic Scripting.
Step 3 – Check the box for Activate the Call of Events.
Step 4 – In the pull-down menu, select Sub OnAfterPrint(byValDoc)
Step 5 – In the Function box below the pull-down, enter the following text: document.AddWaterMark(“reprint”,0).printable =True

Step 6 – Run the Visual Basic script. After the script has been completed the “reprint” watermark will appear on the label. You may customize the text field to best suit your label.

Step 7 – Navigate to the IDocument_Watermark_Text_Object and right-click to select Properties.
Step 8 – In the Properties window, select the General menu on the left.
Step 9 – Deselect the box for Printable.
Step 10 – Click OK. Run a test print of the label to confirm that it works as expected.

Additional Links
An example of running a Visual Basic script to increment a serial number can be found here.
Other Visual Basic script examples from the Teklynx support site:
http://support.teklynx.com/#/path/80016814
http://support.teklynx.com/#/path/80016522
Author
Related Articles
- Loftware Redirect Print to PDF action using multiple printer seats
- License is failed – TEKLYNX CENTRAL Error Message
- Loftware Web Designer vs Desktop Designer
- Loftware Workday API Splitting Print Jobs
- Planning a BarTender Server Migration and Upgrade – BarTender Instructions Article
- Deciding on an In-Place Upgrade, Test Server, or Migration – BarTender Reference Article