Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Powerplay PDF export via command line 1

Status
Not open for further replies.

chardt

Technical User
Sep 22, 2002
20
0
0
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 !!
 
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
 
How can I start this macro via command line ?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top