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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with macro running on MS Server 2003

I've written a macro to export a report to PDF, this works fine when I run it on my pc however when i run it on the server it prompts me with a 'Save as' box.

Any ideas?

My code is attached.

Thanks

Helen

1 Solution

Accepted Solutions
disqr_rm
Partner - Specialist III
Partner - Specialist III

Try commenting lines which are resetting registry keys:

WSHShell.RegWrite RegKey & "BypassSaveAs", 0
WSHShell.RegWrite RegKey & "OutputFile", ""

And after execution check if it is able to make registry changes. Could be authorization problem with the user running this job on the server.

View solution in original post

3 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Try commenting lines which are resetting registry keys:

WSHShell.RegWrite RegKey & "BypassSaveAs", 0
WSHShell.RegWrite RegKey & "OutputFile", ""

And after execution check if it is able to make registry changes. Could be authorization problem with the user running this job on the server.

Not applicable
Author

Hi,

That seems to have worked, thanks! I took the macro from the fourm - do you know why those 2 lines would normally be inculded, it seems to be working fine without making the registry changes.

Thanks

Helen

disqr_rm
Partner - Specialist III
Partner - Specialist III

Those lines are restting registry values back to original. If you leave those commented, the user will never be givin popup for "Save As", which may not be good in your case. Atleast, you know where to dig-into now.