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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CognosScript equivalent of Autofit, or How to set a column width?

Status
Not open for further replies.

EJKorvette

Technical User
Jun 28, 2006
1
US
I have written a CognosScript macro that opens PowerPlay reports against a cube, manipulates them, and then saves various reports as PDFs.

I am trying to duplicate the Autofit function with code so that before I save a PPR to a PDF, I will be sure that the complete category labels will print on the PDF.

I have tried to use the statement

objPPRep.columns.Item(1).Autofit

It compiles and runs, but nothing happens. There is no help available for Autofit when I right click on it.

How can I do this? Also, when I add nested rows to a autofitted column, the column size defaults to a set width. I don't want to change my defaults, I want to the macro to duplicate double clicking to Autofit.

As usual, there is no help in the documentation.

Any help will be appreciated.

EJKorvette
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top