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

generate pdf with Xchange

hi community, i'm new in QlikView and i want some help from you please!

i want to generate a PDF report using pdf-Xchange the native tool of QlikView. i have tried to do it with success with many other tools like bullzip, pdf creator... But not with pdf-Xchange  and that what is needed to be done.

what i have done until this words:

ActiveDocument.PrintDocReport "RP01", "PDF-XChange 3.0", false

i have a SaveAS PopUP, that i dont need !!!

help me please!

best regards !

10 Replies
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

there are some settings (ie don't ask for the folder to save) to save pdf.

Not applicable
Author

hi Michele,

i don't want the folder choice to be shown but the macro show it. i'm asking for the setting to stop this action and save automatically in a specific foder.

bbi_mba_76
Partner - Specialist
Partner - Specialist

You have to set the properties of the printer: in this way you could set not to prompt for the save as window and the location/name of the pdf. I'm looking for an example to show that.

Not applicable
Author

an example will be great !

bbi_mba_76
Partner - Specialist
Partner - Specialist

Explore the printer windows, select the pdf-xchange printer and then the printing settings

and then in the save menu

Not applicable
Author

that useful! thank you Michele. but it's not what i want!

all the configuration have to be done via Macro !

bbi_mba_76
Partner - Specialist
Partner - Specialist

You could use a macro to set the destination folder and name (pdf generated file has a predefined name, so I've to change and move the file)

public Sub Print_PDF(sPDFPath_src, sPDFPath_dest, sPDFName_dest, sReportID)

ActiveDocument.PrintReport sReportID, "PDF-XChange 3.0", false

Set objFSO = CreateObject("Scripting.FileSystemObject")

'If the folder not exists then -> create

If Not objFSO.FolderExists(sPDFPath_dest) Then

  Set newfolder = objFSO.CreateFolder(sPDFPath_dest)

End If

PDFFullName = sPDFPath_dest & "\" & sPDFName_dest

'If the file exists then -> delete

If objFSO.FileExists(PDFFullName) then

  objFSO.DeleteFile PDFFullName

End If

objFSO.MoveFile sPDFPath_src, PDFFullName

Set objFSO = Nothing

ActiveDocument.GetApplication.Sleep 2000

End Sub

Not applicable
Author

Hi,

I have only tried to generate PDF files with the help of another PDF generator. I am also testing about the related programs these days. I want to look for a fine PDF processor whose way of processing is simple and fast to help me with the related work. It will be better if it is totally manual and can be customized by users according to our own favors. Do you have any ideas about it? Or any good suggestion? Thanks in advance.

Best regards,

Arron

jerrysvensson
Partner - Specialist II
Partner - Specialist II