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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pirotfab
Creator
Creator

print report pdf

Hello, i want to print a report in pdf

i have an error from the path

i don't understand, can you help me ?

 

sub ImprimerRapport

vRapport = "RP03"
vNom = "Bilan"
ActiveDocument.PrintReport(vRapport), "QlikViewPDF",False
vAdresse = "C:\QV\test" & vNom&".pdf"
ImprimerRapportPDF(vAdresse)
ActiveDocument.GetApplication.Sleep 2000

end sub

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

Function ImprimerRapportPDF(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

0 Replies