Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro Automation on QV Server

I have been looking at the following task for our business.

I have setup a macro that saves an image of a sheet from my Qlikview document. I user the folliowing macro:

sub Image
ActiveDocument.Sheets("Dashboard").ExportBitmapToFile "D:\Qlikview.jpg"
ActiveDocument.Save
End Sub

This works fine when the document is manually reloaded but when scheduled to run via Qlikview Publisher, it does not run the macro and the image file is not created.

Any ideas?

7 Replies
Not applicable
Author

Hi,

i am using V9 and share the same problem.

I have a macro which exports a chart to a xls with ExportBiff and sends it via Email to specified users in my document.

This is triggered by the ON_POST_RELOAD Event.

When reloading manually or from commandline "Qv.exe /R Mydocument.qvw" or when calling this in the suporting tasks it works.

But its a p.i.t.a to create an extra external task for every Document i want to export and its a big problem to maintain this either.

Isnt there a solution within publisher for this?

Not applicable
Author

It's normal, schedule an external reload with qv.exe /R doc.qvw from Publisher or other scheduler, native Pubisher reload doesn't execute on post reload macro by design.
regards

amien
Specialist
Specialist

cant this be done without publisher?

Not applicable
Author

Yes, schedule a reload with your scheduler invoking qv.exe /R yourdoc.qvw, see Reference Manual for additional info, Regards.

amien
Specialist
Specialist

with scheduler you mean the windows task scheduler?

Not applicable
Author

Yes, Windows scheduler or others you like, Regards

amien
Specialist
Specialist

ok .. too bad .. i was hoping for an qlikview embedded solution