Search found 14 matches

by FunDeckHermit
Wed Jun 27, 2018 9:11 am
Forum: Label Printing Integration & Programming
Topic: Do I need to install Python separately to use os module
Replies: 2
Views: 771

Re: Do I need to install Python separately to use os module

Thank you Saso, This was exactly what I was looking for. I have included my logger for future references: Creating directory and file: from System.IO import Directory from System.IO import File import datetime today = datetime.date.today() myFilename = today.strftime('%Y%m%d Nicelabel log.txt') myDi...
by FunDeckHermit
Tue Jun 26, 2018 4:46 pm
Forum: Label Printing Integration & Programming
Topic: Do I need to install Python separately to use os module
Replies: 2
Views: 771

Do I need to install Python separately to use os module

Hello again, I'm trying to write a simple logger with Python. I can't switch back to VBscript so Python it is. import os import datetime today = datetime.date.today() Filename = today.strftime('%Y%m%d Nicelabel log.txt') directory = "Logs" if not DoesFileExist(directory + "/" + Filename): if not os....
by FunDeckHermit
Tue Jun 26, 2018 8:35 am
Forum: General Discussions
Topic: Log to Windows Event log?
Replies: 3
Views: 806

Re: Log to Windows Event log?

Hello Saso, I tried googling once, then I took an arrow into the knee. But joking aside, I tried the second Python script yesterday and it didn't work. It couldn't import the win32evtlogutil. * NiceLabel 2017 is using IronPython right? Edit 1: The third link has the same problem: "No module named wi...
by FunDeckHermit
Mon Jun 25, 2018 3:25 pm
Forum: General Discussions
Topic: Log to Windows Event log?
Replies: 3
Views: 806

Log to Windows Event log?

Hello,

I am looking for a way to write entries into the Windows event log.
The build-in log event action is only visible in the Nicelabel Control Center.

Could i use a Python or VBscript function to write to the Windows event log?
by FunDeckHermit
Wed Jun 20, 2018 9:13 am
Forum: Suggestions & New Ideas
Topic: Loop variables inside the "for every record" construct
Replies: 1
Views: 665

Loop variables inside the "for every record" construct

Hello everyone, When trying the "for every record" contruct in Nicelabel 2017 Powerforms it struck me that I couldn't use/reference the variables. What I suggest is some way of creating a limited scope variable inside the "for every record" construct. A loop variable. Example In C# this would look s...
by FunDeckHermit
Tue Jun 19, 2018 10:41 am
Forum: Label Printing Integration & Programming
Topic: Python: dynamic set variables?
Replies: 3
Views: 912

Re: Python: dynamic set variables?

Hallo Saso, Thanks for your reply. After some tweaking I almost have a working solution: rows = DB_NutritionalData.Value.splitlines() del rows[0] for row in rows: row = row.strip('"') a,b,c = row.split('","') exec('LBL_TBL_'+a+'_Value.Value = c') exec('LBL_TBL_'+a+'_Text.Value = b') Error: https://i...
by FunDeckHermit
Tue Jun 19, 2018 9:31 am
Forum: Label Printing Integration & Programming
Topic: Python: dynamic set variables?
Replies: 3
Views: 912

Python: dynamic set variables?

Hello everyone, I have the following data: ['TotalFat','vet','800'] ['Protein','eiwit','400'] ['Salt','zout','4'] etc etc And the following variables: LBL_TBL_TotalFat_Text LBL_TBL_TotalFat_Value LBL_TBL_Protein_Text LBL_TBL_Protein_Value LBL_TBL_Salt_Text LBL_TBL_Salt_Value etc etc Parsing I run a ...
by FunDeckHermit
Mon May 07, 2018 8:29 am
Forum: Thermal Printer Drivers
Topic: Driver problem Valentin Spectra 108
Replies: 1
Views: 706

Driver problem Valentin Spectra 108

Hello everyone, I have encountered a driver problem during an installation at a costumer. I would like some advice/help/updates on this. Situation: Costumer has a Valentin Spectra 108 printer running an old application. He wants to run a new NiceLabel powerforms application next to it. His old appli...
by FunDeckHermit
Tue May 01, 2018 10:50 am
Forum: General Off Topic Discussions
Topic: Newer look for forum?
Replies: 0
Views: 1587

Newer look for forum?

Hello,

I've been browsing this forum quite a bit and it works excellent, but it looks a bit dated.

Another forum I frequently visit is the Power BI forum from Microsoft.
That forum is powered by Lithium and looks great.

This is just a tip, no critique on this forum.
by FunDeckHermit
Tue May 01, 2018 10:40 am
Forum: Label Design & Printing
Topic: Database Connection String Replacement doesnt work
Replies: 3
Views: 397

Re: Database Connection String Replacement doesnt work

Hello Damjan, I checked the file-location: "C:\ProgramData\NiceLabel\NiceLabel 2017" folder Nothing seems wrong with my config-file. Is there a debug log I could check if the file is properly parsed? Am I using illegal characters that I need to escape somehow? Is the encoding correct? https://imgur....
by FunDeckHermit
Mon Apr 30, 2018 2:48 pm
Forum: General Discussions
Topic: HTML scraping? Possible?
Replies: 4
Views: 3383

Re: HTML scraping? Possible?

Hi Phoenix775, You can create a PowerShell script that scrapes a website. You can connect this script to a button event with PowerForms. Another option is AutoHotkey to send button/key presses or open the website in a browser. This is the most simple solution. The Autohotkey script can be compiled i...
by FunDeckHermit
Mon Apr 30, 2018 2:05 pm
Forum: Label Design & Printing
Topic: Database Connection String Replacement doesnt work
Replies: 3
Views: 397

Database Connection String Replacement doesnt work

Hello, I'm trying to change the database connection during runtime for a powerforms application. I created the DatabaseConnections.Config inside the NiceLabel 2017 folder with this values: <?xml version="1.0" encoding="UTF-8" ?> <DatabaseConnectionReplacements>     <Replacement>         <From>Data S...
by FunDeckHermit
Mon Apr 30, 2018 1:18 pm
Forum: Suggestions & New Ideas
Topic: Extracting data from selected label + group in panel + docking
Replies: 3
Views: 892

Re: Extracting data from selected label + group in panel + docking

Hallo Dado,

Thanks for your reply, I will check the PDF you provided.
by FunDeckHermit
Fri Apr 20, 2018 2:45 pm
Forum: Suggestions & New Ideas
Topic: Extracting data from selected label + group in panel + docking
Replies: 3
Views: 892

Extracting data from selected label + group in panel + docking

Hi, I've been using Nicelabel Powerforms and am really liking the user interface and ease of use. A few features are missing in my humble opinion: A method of extracting data from the label like the rotation, size, width. This could be used to automatically select a specific printer. One could also ...