Thanks for the quick response. I'm using version 3.9.0.0. The designed excel document is attached. Here is the sample code I'm using to generate the Excel file. Thanks for all your help.
using System.IO;
using Aspose.Cells;
namespace ClassLibrary1
{
public class Class1
{
public void ExportStyleBug()
{
Workbook workBook = new Workbook();
using (FileStream templateStream = new FileStream(“MediaPlanStyleBugTest.xls”, FileMode.Open, FileAccess.Read, FileShare.Read))
{
workBook.Open(templateStream);
}
Range r1 = workBook.Worksheets[0].Cells.CreateRange(0, 0, 1, 1);
r1.Style = workBook.Styles["MonthRow1"];
r1[0, 0].PutValue("0");
workBook.Save("MediaPlanStyleBugTest_Output.xls");
}
}
}