Skip to content

Instantly share code, notes, and snippets.

@carlfredrikhero
Last active April 22, 2016 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlfredrikhero/35d5a28047c6d46649144c5bcb6597c3 to your computer and use it in GitHub Desktop.
Save carlfredrikhero/35d5a28047c6d46649144c5bcb6597c3 to your computer and use it in GitHub Desktop.
Qlikview macro to trigger "on demand" loads of NPrinting job or task
' Read https://community.qlik.com/docs/DOC-8441 to set up "External XML Request"
' in NPrinting
' Add this macro to Qlikview, change the Path variable
' Make sure "Request Module Security" = "System Access" and
' "Current Local Security" = "Allow System Access"
' http://i.imgur.com/lKlUNt2.png
' If you need to execute this macro from the Access Point, be sure to allow
' macros on the server. http://i.imgur.com/xerNPnF.png
' Add a button to your Qlikview application that trigger this macro
' The file "job.processed" will change name to "job.request" which is NPrintings
' cue to process the file.
Sub RunJob()
Dim Fso, Path, Processed, Request
Path = "C:\Path\to\your\xmlFiles\"
Processed = "job.processed"
Request = "job.request"
Set Fso = CreateObject("Scripting.FileSystemObject")
Fso.MoveFile Path & Processed, Path & Request
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment