Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

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

Macro Problem

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

MVP
MVP

Macro Problem

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

Not applicable

Macro Problem

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 ;-) )