Oct 7, 2002 #1 chardt Technical User Sep 22, 2002 20 DE Hi, is it possible to export a Powerplay report as PDF file by using an Cognos Macro ? I would like to use this macro from command line. Thanks for any help !!
Hi, is it possible to export a Powerplay report as PDF file by using an Cognos Macro ? I would like to use this macro from command line. Thanks for any help !!
Oct 7, 2002 1 #2 lmorgansky IS-IT--Management Jul 9, 2002 15 US Here is sample code from a macro I wrote: ' Create report object Set objPPRep = CreateObject ("CognosPowerPlay.Report" objPPRep.Open( <path to report here> ) Set objPDF = objPPRep.PDFFile( <PDF file name here>, True) With objPDF .SaveEntireReport = True .AxisOnAllPages = True End With objPDF.Save Upvote 0 Downvote
Here is sample code from a macro I wrote: ' Create report object Set objPPRep = CreateObject ("CognosPowerPlay.Report" objPPRep.Open( <path to report here> ) Set objPDF = objPPRep.PDFFile( <PDF file name here>, True) With objPDF .SaveEntireReport = True .AxisOnAllPages = True End With objPDF.Save
Oct 8, 2002 Thread starter #3 chardt Technical User Sep 22, 2002 20 DE How can I start this macro via command line ? Upvote 0 Downvote
Oct 9, 2002 #4 semby Vendor Oct 8, 2002 33 CA assuming its the dos command line your synatax would be <path1> runmac.exe <path2> macroname You must compile the macro <path1> is the path to the cognos runmac utility <path2> is the path to the macro Upvote 0 Downvote
assuming its the dos command line your synatax would be <path1> runmac.exe <path2> macroname You must compile the macro <path1> is the path to the cognos runmac utility <path2> is the path to the macro