Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I use script below to
1. Kill QV
2. Reload QVW
3. and open QVW
REM QlikView wordt opgestart en middels commando /r opnieuw geladen
@Echo off
if not "%1" == "max" start /MAX cmd /c %0 max & exit/b
cd\Program Files\QlikView
taskkill /f /im Qv.exe
qv.exe /r c:\qlikview\Planning.qvw
start /max qv.exe c:\qlikview\Planning.qvw
REM Hier eindigt het oorspronkelijke backup script.
What i like to do is also when opening automatic print a report. I use already the trigger "On open" withe the action "Print report"
Above does not work via batch file, manually it works perfect. Someone has a solution?
I think this will help you, try this in cmd prompt as batch file.
Write this script in .bat format
"C:\Program Files\QlikView\qv.exe" /r "FolderPath/AppName.qvw"
It will run your application.
Inside QlikView document (Your application) in Settings -> Document Properties -> Triggers -> OnPostReload -> Add ->External -> Run Macro -> Your Macro Report Name e.g: Reload.
Personally I prefer the use of vbs-batches which are more flexible. Here you will find one example and some more stuff to the topic of using batches: Re: Run qvw from batch.
- Marcus