Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Save as PDF

Hi,

Is there any solution to save dashboard as a PDF?

I know we can create report for it but i dont want to use this just because we have container in our dashboard and there are no option to display container as it is,and list box also not show as display in dashboard.

Regards,

9 Replies
er_mohit
Master II
Master II

Try to use this macro code

'' Create instance of PDFcreatore

'Set PDFCreator = CreateObject("PDFCreator.clsPDFCreator")

'

'PDFCreator.cOption("UseAutosave") = 1 // Enable autosave

'PDFCreator.cOption("UseAutosaveDirectory") = 1 // Use a specific save directory

'PDFCreator.cOption("AutosaveDirectory") = ActiveDocument.getVariable("TempPath").GetContent.String // Set autosave directory

'PDFCreator.cOption("AutosaveFormat") = 0 // Use PDF file type (.PDF extension)

'

'

'PDFCreator.cOption("AutosaveFilename") = "My PDF" // set the filename, optionally you can get the Caption of the object and use it as Filename

'

'PDFCreator.cPrinterStop = FALSE

'

'// Export to PDF File

'ActiveDocument.PrintDocReport ReportID, "PDFCreator"

sub printRP01

printReportPDF "E:\Testing.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

Not applicable
Author

Hi Mohit,

Thank you for your reply.

Mohit in your Macro Report is calling but i dont want to create it

**ActiveDocument.PrintReport "RP02"

bumin
Partner - Creator II
Partner - Creator II

Hi Mohit,

the first part of your macro is marked as a comment.

Does the macro start with "sub printRP01"?

kind regards

Bumin

Not applicable
Author

Hi,

Using code to deal with the PDF saving projects is too complicated for me. I wonder why not generate PDF files directly using some 3rd party PDF processors? Or you can convert other formats to PDF files as well. Btw, do you have any good suugestion about the relevant PDF toolkits? I want to look for a fine one which is totally manual and can be customized by users according to our own favors. Any suggestion will be appreciated. Thanks in advance.

Best regards,

Arron

amit_saini
Master III
Master III

Hi Adeel,

Please see the attachment.

Thanks,

AS

vikasmahajan

You need to install free pdf printer in server.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
jsingh71
Partner - Specialist
Partner - Specialist

Hi,

First you need to install PDF writer and set it as your default printer. after that craete one button and put one action Print.

nagaiank
Specialist III
Specialist III

Did you try NPrinting ? You may check for this in the QlikMart section.

Not applicable
Author

Hi there

n modern enterprise's document management system, people often need to process and handle large volumes of multi-page PDF document files. Therefore, a professional PDF document page processing utility will bring much convenience for users to manipulate and manage those PDF files, especially when they are processing some PDF document files that have over 500+ pages.So ,you can try to some PDF program which supports to save PDF or convert PDF files to help you out