Views:

Product: LABELVIEW, CODESOFT

Version: All Versions

 

1. Open CODESOFT/LABELVIEW and select a label in which the image file is coming from the database.

 

2. Go to Data Sources, hover over When Printed and click on Add.

3. On the Input tab, name the variable "Image1".

4. Click on the When Printed tab. Enter "Display Image on label? Y/N" in the Prompt text box.

5. Change Pick list to <LOCAL>.

6. Click on the ellipsis (...) button.

7. Next to Values, click on the Green + sign.

8. Enter a Y and then click the + again and enter a N. Click OK.

9. Make sure to check the "Force data to come from the list" check box, located underneath the Pick list drop down. Click OK.

10. There may be a message that pops up like this. Click OK.

11. Go to Data source, hover over Formula and select Add.

12. Name the variable "Image2". 

13. In the large box enter the formula: if(exact({Image1} , "Y") , "variablename" , " "). Variablename is the name of the actual variable on the label referencing the image file. In this example it is LogoName. Click OK.

14. Double click on the image file that is placed on the label. Go to the Data source tab.

15. Change the Data source to Image2 in the Formula listings. Click OK.

16. The formula can now be tested by bringing up the print screen and using the form to change the When Printed field to either Y or N.