Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
geogou1973
Creator
Creator

Problem with the export when i run the qvw from a batch file

Hello.

I have created a qvw that exports a jpg file with a vbscript module when i reload the qvw by trigger on postReload.

This is the script

Sub ExportFiles

set corp = ActiveDocument.GetSheetObject("CH10")

corp.ExportBitmapToFile "C:\TEST\Sales.jpg"

End sub

When i reload it manually it works and the file exports.

When i run a batch file that reloads the qvw does not work.

The batch file contains the commands below.

@ECHO OFF

"C:\Program Files\QlikView\Qv.exe"  /r C:\TEST\SALES.qvw

I have to mention that when i export the file in xls with the command in vbscript below the batch file works and the file exports.

corp.ExportBiff  "C:\TEST\Sales.xls"

Has anyone an idea what is happening and does not work the batch file when i try to export a jpg file ?

Thank you in advance.

0 Replies