Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

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,

Tags (1)
9 Replies
er_mohit
Honored Contributor II

Re: Save as PDF

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

Re: Save as PDF

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
Contributor II

Re: Save as PDF

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

Re: Re: Save as PDF

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
Honored Contributor III

Re: Save as PDF

Hi Adeel,

Please see the attachment.

Thanks,

AS

vikasmahajan
Honored Contributor III

Re: Save as PDF

You need to install free pdf printer in server.

Vikas

jsingh71
Valued Contributor

Re: Save as PDF

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
Valued Contributor III

Re: Save as PDF

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

Not applicable

Re: Save as PDF

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

Community Browser