Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Export to PDF does not work

I want to export the entire sheet to PDF format. I tried following macro. It ran successfully yesterday, but when i'm trying today it just stopped working. It executes but doesn't create any PDF file.

Pls help me to resolve it.

sub Export
printReportPDF "D:\Qlikview\15T.pdf"
ActiveDocument.GetApplication.Sleep 5000
ActiveDocument.sheets("Main").Print
ActiveDocument.GetApplication.Sleep 5000

' SendMail


msgbox "saved."

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

1 Reply
Not applicable
Author

Guys..pls help me out....this is my second post and it also unanswered...:(