Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Run script on server reload

Hi

While server does the scheduled reload, does it trigger the event OnPostReload too? I get nothing in the target folder when using following macro script OnPostReload event, but when the script is run through the button click event on the client it worked.

ActiveDocument.Sheets("Main").ExportBitmapToFile "C:\temp\Graphxxxxxxx" & replace(FormatDateTime(now(),vbShortTime),":","") & ".jpg"

I just wanted to take snapshot of document after the reloads.

Thanks

1 Solution

Accepted Solutions
vgutkovsky
Master II
Master II

Seems like a lot of people are having this problem. It could be an instance of Bug 24192 (Macro Trigger OnPostReload doesn't work if you have more than one document opened) which is fixed by SR3. SR3 is in Quarantine, which usually means it will be released within a week. After you install it, If the problem still occurs, QlikTech needs a clearer understanding of the bug for fix in future releases (support@qlik.com).

Hope this helped!

View solution in original post

2 Replies
vgutkovsky
Master II
Master II

Seems like a lot of people are having this problem. It could be an instance of Bug 24192 (Macro Trigger OnPostReload doesn't work if you have more than one document opened) which is fixed by SR3. SR3 is in Quarantine, which usually means it will be released within a week. After you install it, If the problem still occurs, QlikTech needs a clearer understanding of the bug for fix in future releases (support@qlik.com).

Hope this helped!

Not applicable
Author

Thanks a lot Vlad.