Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Generate a report on Server

Hello everyone, i'm facing a problem.

I'm trying to generate a report on Qlikview server. On the Qlikview it works fine, but if i upload the application and try to generate the report clicking in a button (in browser), it doesnt work.

Macro :

----------------------------------

Sub Dagrapport

vReport = "RP01" 'Set report

vName = "Relatorio_Ducati" 'Name of output pdf

vDate = ActiveDocument.Evaluate("=Date(Today(), 'DD_MM_YY')")

reportFile = "\Relatorio\" & vName & "_" & vDate & ".pdf" 'Setting outputname

MyPrintPDFWithBullZip(reportFile) 'Call pdf printer

ActiveDocument.PrintReport "RP08", "Bullzip PDF Printer"

End sub

FUNCTION MyPrintPDFWithBullZip (pdfOutputFile)

Set obj_printer_util = CreateObject("Bullzip.PDFUtil")

printername = obj_printer_util.defaultprintername

set obj = CreateObject("Bullzip.PDFSettings")

obj.printername = obj_printer_util.defaultprintername 'assign the printername

obj.SetValue "Output" , pdfOutputFile

obj.SetValue "ConfirmOverwrite", "no"

obj.SetValue "ShowSaveAS", "never"

obj.SetValue "ShowSettings", "never"

obj.SetValue "ShowPDF", "yes"

obj.SetValue "RememberLastFileName", "no"

obj.SetValue "RememberLastFolderName", "no"

obj.SetValue "ShowProgressFinished", "no"

obj.SetValue "ShowProgress", "no"

obj.WriteSettings True

END FUNCTION

------------------------------------------

It works local but in the browser it dont. Somebody know how to fix it?

Thanks !

0 Replies