Oct 7, 2002 #1 chardt Technical User Joined Sep 22, 2002 Messages 20 Location 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 Joined Jul 9, 2002 Messages 15 Location 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 Joined Sep 22, 2002 Messages 20 Location DE How can I start this macro via command line ? Upvote 0 Downvote
Oct 9, 2002 #4 semby Vendor Joined Oct 8, 2002 Messages 33 Location 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
Oct 10, 2002 Thread starter #5 chardt Technical User Joined Sep 22, 2002 Messages 20 Location DE Thank You Upvote 0 Downvote