EJKorvette
Technical User
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
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