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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
agrisyst
Partner - Contributor
Partner - Contributor

Problem with command line and macro to mail reports in Windows Tasks

Hello all,

My problem is the following.

Updated to QV9 SR6 and now some of my windows task do not work anymore.

Intention: I have a QV application which start, and reloads in Windwos Tasks (once a week). Works well

qv.exe /r 'filename'

Now I have added a macro whichs runs on reload (the macro, prints report to PDF and mails to several people). Now QV stops during the execution of the Task (with error). Within the application when starting reload the macro runs fine and no error. Problem therefore is somehow in the fact that in the command line opening, reloading and sending mail is somehow to slow or something.

Anybody an idea what causes this problem.

Marc

1 Reply
gandelr
Partner - Contributor III
Partner - Contributor III

Hy,

I had a similar problem and solved it like this:

qv.exe 'filename' -delete parameter /r

create macro:

sub start
ActiveDocument.Reload
ActiveDocument.ClearAll false
ActiveDocument.GetApplication.WaitForIdle

call <function>

ActiveDocument.GetApplication.Quit

end sub

this sub start on event OpenDocument and delete evet on afterreload