Hi,
I was use Aspose.Cells 20.1.0,
this is sample code,
when then FieldName has dot like &=[TEST].[TAG_TAG1.00], it’s not working.
var workBook = new Workbook(FileFormatType.Excel97To2003);
var sheet = workBook.Worksheets[0];
var dt = new DataTable("TEST");
dt.Columns.Add("TAG_TAG1.00", typeof(string));
dt.Columns.Add("TAG_TAG2.00", typeof(string));
for (int i = 0; i < 10; i++)
{
var dr = dt.NewRow();
foreach (DataColumn item in dt.Columns)
{
dr[item.ColumnName] = "1000";
}
dt.Rows.Add(dr);
}
for (int i = 0; i < dt.Columns.Count; i++)
{
DataColumn item = dt.Columns[i];
sheet.Cells[0, i].PutValue($"&=[{dt.TableName}].[{item.ColumnName}](copystyle)");
}
WorkbookDesigner designer = new WorkbookDesigner
{
Workbook = workBook
};
designer.SetDataSource(dt);
designer.Process();
workBook.Save(Utility.GetOutputFilePath(TestingPath, "TestSpecialTag1.xls"));`