Free Support Forum -

Column.ApplyStyle method is not available

I only have choices of

.Item (Readonly)

.Style (Readonly)


I am trying to do the following and cannot.

objColumn = objExcel.Worksheets(0).Cells.Columns(intColumnIndex)
objColumn.ApplyStyle(Style, flag)

This message was posted using Aspose.Live 2 Forum


Thanks for considering Aspose.

Which version you are using?

Please try the latest version 4.4. downloading from its download page which does have the related method of the Column class:

Thank you.

3.1.1 is the version. Upgrading is really not an option for this project since we are not in control of that. Do you know the syntax for applying a style for the 3.1.1 version?


Thanks for considering Aspose.

Since you are using some older version of the component, I think you may try to set the style to the individual cells in the column. You may create a Style object and set its attributes, loop through all the cells in the column and set the style of each cell in the column to the object e.g., Cell.Style = mystyle;....

Thank you.

OK, I will try that. Thanks for your advice.