Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
An issue has been identified on Qlik Cloud hub, please visit our Status Update Page for details: GET THE LATEST
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
MVP & Luminary
MVP & Luminary

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