Discussion Board for collaboration on QlikView Scripting.
I store one field from a resident table loaded from a qvd to a txt file (I've also tried csv).
This txt file is saved with the UTF-8 BOM encoding.
The problem I have with this is that the file contains paths to images that I automatically convert with IrfanView (through the command line). But IfranView throws an error: "Can't read file header" because of the first BOM bytes.
Do you know of a way to automatically remove the BOM or can I change the store option? I've tried a bom remover tool but it had no "silent option" which is not an option.
Place the code in a vbsfile: For instance utftoansii.vbs
If you have Publisher I would set up an external program task that runs after your reload is finished.
Syntax : cscript.exe utftoansii.vbs
You could place it in QV also, open the macro dialog Ctrl-M and add the code.
Trigger the code in OnPostReload. You have start your reload with a batchjob though.
qv.exe /r app.qvw since Publisher doesn't run triggers.
Stupid question: I need an automated process that calls bomremover.exe from the QlikView script, but it requires the user to click Enter before it runs.
Is this how you run it? I'm trying to find/remember how to send an <Enter> command, and coming up empty.