Article ID: 249 - Updated: Aug 8, 2018 - Products: Automation, Designer PowerForms, Designer Pro, SDK, Web printing - Version: Any - Category: Connectivity and Database
You can use Python to enhance the abilities and performance of NiceLabel software. Typically, you would use scripting to implement some computation algorithms, such as check-digit algorithms, or to add decision making into your labels or form applications.
NiceLabel 2017 ships with embedded IronPython that allows you to use both Python modules and .NET assemblies in your code. However, to be able use the Python modules, you have to install desktop Python on your computer. Installation of desktop Python is also mandatory, when you want to use Pyhton scripts in previous generations of NiceLabel software.
- Install desktop Python, if you will use external Python modules in your code and/or you are using NiceLabel 6 or below.
- No need to install desktop Python, if you have NiceLabel 2017 and you wil not use external Python modules in your code (but you might be using .NET assemblies). For computation and decision making (e.g. IF statements) you do not need external modules.
To install Pyhton support, you have to install two components (1) Python core and (2) Python for Windows extension (PyWin).
Do the following:
- Visit Python download page. Make sure to download version 2.7.X, NOT version 3.
- Download Python for Windows Extensions. Download 32-bit version for Python 2.7.
- First, install Python 2.7.
- Second, install PyWin32 extensions.
- Start NiceLabel software and you can use external Python modules in your code.