Hi Pawel,
Named Range feature has now been supported. Please use the updated version of Aspose.Cells.GridWeb v2.3.1.2009. Two new classes (Name and NameCollectioin) have been introduced. Following code snippet will help you.
GridWeb1.WebWorksheets.Clear();
GridWeb1.WebWorksheets.ImportExcelFile(@"c:\excel\test.xls");
GridWeb1.WebWorksheets[0].Cells["g6"].Formula = "=sum(hh)";
int index = GridWeb1.WebWorksheets.Names.Add("zz", "sheet1!a2:b5");
Name name = GridWeb1.WebWorksheets.Names[index];
GridWeb1.WebWorksheets[0].Cells["g7"].Formula = "=sum(zz)";
GridWeb1.WebWorksheets.RunAllFormulas();
GridWeb1.WebWorksheets.SaveToExcelFile(@"c:\excel\test1.xls");
Thanks,
Sincere Regards,
Salman Shakeel
Support Developer,
Aspose Sialkot Team
Contact Us