8 Replies Latest reply: Apr 17, 2009 5:11 AM by mingming RSS

    How to auto export PDF after batch reload?

      Hi, All,

      Situation:

      1. Installed QlikviewPDF.

      2. Macro script to print to PDF with predefined output path is working when manually click 'reload' in the Qlikview

      3. when batch the qvw script with 'qv.exe /r file.qvw', it either shows windows execution error or nothing.

      Can anybody help?

      The pdf print script is attached:

      ----------------------------------------

      sub ExportPDFs

      printReportPDF("c:\file.pdf")

      ActiveDocument.PrintReport "RP01", "QlikViewPDF", false

      end sub

      Function printReportPDF(pdfPath)

      set WSHShell = CreateObject("WScript.Shell")

      WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfPath, "REG_SZ"

      WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"

      set WSHShell = nothing

      end Function

       

      ----------------------------------------