Product: LABELVIEW, CODESOFT
Version: LABELVIEW Gold and All versions of CODESOFT 2014 and later
|
1. Start with two objects already on your field. In this example I am using a text object and a barcode object. The text object is linked to the When printed variable named "Text". As you can see from the image below, the text object is linked to both the When printed field, and the text object Text1.
2. Next go to File > Properties. Then to the Visual Basic Scripting tab. Check the checkbox, "Activate the call of events" if it is not already checked. Then choose the subroutine labeled: "Sub OnBeforePrint...
3. Click OK. Now, when you go to print, if the value in the When printed field is exactly "Test1" it will make the text object visible and display "Test1", as well as hide the barcode object. However, if the When printed field does not match that value, the text field will become hidden and the barcode will be visible.
|