4 Replies Latest reply: Jul 19, 2012 9:49 PM by qvltao1234 RSS

    Export PDF

    stefano fiemazzo

      Hi all,

      this is my macro:

       

      sub printRP01

      printReportPDF "C:\Users\Public\Documents\TestQlik\PreviousPeek\Test\18T.pdf"

      ActiveDocument.GetApplication.Sleep 2000

      ActiveDocument.PrintReport "RP02", "QlikviewPDF"

      ActiveDocument.GetApplication.Sleep 10000

      end sub

      '===========================================================================

      Function printReportPDF(pdfOutputFile)

      Set WSHShell = CreateObject("WScript.Shell")

      WSHShell.RegWrite "HKCU\Software\QlikviewPDF\OutputFile", pdfOutputFile, "REG_SZ"

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

      Set WSHShell = nothing

      End function

       

      at the second line (printReportPDF "C:\Users\Public\Documents\TestQlik\PreviousPeek\Test\18T.pdf") i've this error:

       

      ActiveX component can't create object: 'WScript.Shell'

       

      I use QlikView 10 SR2 64bit and i've installed PDFCreator 1.2.1