Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

Printing a report automatic when open qlikview in a scheduled task

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?

2 Replies
Not applicable

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.

marcus_sommer

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