Tag: python

How can I automate NiceLabel from a scripting language like VBScript or Python?

You can find two examples of automating NiceLabel from a scripting language. The first one is in VBScript and the other one in Python. Both samples do the same thing: run NiceLabel, open label file, iterate through a list of

Posted in NiceLabel, SDK Tagged with: , , , , ,

How can I show a message box using Python script in NiceForm or NiceLabel Portal?

import sys if sys.platform == ‘silverlight’: from System.Windows import * result = MessageBox.Show("Would you like to see the simple version?", "MessageBox Example", MessageBoxButton.OKCancel); if result == MessageBoxResult.OK: MessageBox.Show("No caption, one button."); else: import win32gui import win32con result = win32gui.MessageBox(0, "Would

Posted in NiceForm, NiceLabel Portal Tagged with: , , , ,

Working with Modules in Python Scripts in NiceForm and NiceLabel Portal

A module is a Python source file (a text file) whose name ends in .py. Objects (names) defined in a module can be imported and used elsewhere. The import statement has several different forms: import module from module import name1,

Posted in NiceForm, NiceLabel Portal Tagged with: , , ,

Working with Strings in Python Scripts in NiceForm and NiceLabel Portal

Strings are the basic unit of text in Python. Either single or double quotes can be used to quote strings. This can be useful in some cases: s1 = "Let’s go!" s2 = ‘"NiceLabel is the best!", she said.’  

Posted in NiceLabel, NiceLabel Portal Tagged with: , , ,

Python scripting in NiceForm and NiceLabel Portal

When you buy NiceLabel Portal you also get the new version of NiceLabel Suite (5.2.3.4020). This version includes NiceForm that besides Visual Basic Script now also supports Python as a scripting language. This gives NiceForm and NiceLabel Portal great opportunities

Posted in NiceForm, NiceLabel Portal Tagged with: , , , , , , ,