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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can i find a example which can export a pdf

I learn qv three month,but I can't export a pdf ,please help me ,thanks a lot

3 Replies
Anonymous
Not applicable
Author

There's some different ways about exporting PDF reports if you feel like you need static reporting.

1. Print the report and choose the PDF printer as your printer

2. If you need to automate the printing, you can use a macro (Search the forum for Macro PDF and you'll find something useful). This is a bit tricky.

3. Get Publisher and the PDF generator license add on to allow you to schedule report distribution across the userbase.

Not applicable
Author

hi,first,thanks for your response,I use macro,but when it executed the code"ActiveDocument.PrintReport "RP01", "QlikviewPDF", false",it stop.I want to know why this happen ,and how can I solve it? I have installed qvpdf

my code is below:

sub pdftest

set WSHShell = CreateObject("WScript.Shell")

WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", "E:\Test.PDF", "REG_SZ"

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

ActiveDocument.PrintReport "RP01", "QlikviewPDF", false

set WSHShell = nothing

end sub

Anonymous
Not applicable
Author

Well.. first of all, are you using the old PDF writer QlikViewPDF, or do you have the PDF-XChange 3.0 if you look under your Windows Printers? If it's the latter, you'll have to modify your macro to pick the correct printer, which sounds like the issue here.