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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro Problem GetApplication.Sleep

Hi,


I use a macro that generates PDFs in a loop via QlikView Pdf printer. This macro works fine on my local machine. As soon I copy this file to the server and open it from the "source server" it prints the first pdf in the loop, then I get an macro has no functionality error.
Anyone an idea why this is happening?

(Server Version is 8.5)

Thanks in advance.


Regards

Aloah

3 Replies
Not applicable
Author

Hi,

it seems that the line "ActiveDocument.GetApplication.Sleep 1000" causes the problem.
If I remove this timer only the last PDF in the loop is generated. I guess the printer can't handle that much jobs with no break.

So anyone an idea how I can insert a break instead of the approach above?


Thanks

johnw
Champion III
Champion III

I would try ActiveDocument.GetApplication.WaitForIdle. Might work.

Not applicable
Author

Hi.

tried WaitforIdle, runs without errors, but doesn't print all pdfs.
Is this a security issue? Anyone with a similiar problem (and a solution 😉 )