I use .net aspose.cell to export excell. I want to export mutiple fields in one cell. The sample code is below.
Workbook workbook = new Workbook(fileName);
var head = new
{
InvoiceNo = "INV001",
SerialNo = "202503270001"
};
List headattr = new List();
headattr.Add(head);
var designer = new WorkbookDesigner();
designer.Workbook = workbook;
designer.SetDataSource("head", headattr);
designer.Process();
var guidPath = Path.Combine("D:\TestAspose\Files", $"{Guid.NewGuid().ToString("N")}.xlsx");
workbook.Save(guidPath);
I want to export head.InvoiceNo and head.SerialNo in Cell B3, I hope export the value like 'InvoiceNo:INV001;SetialNo:202503270001' in B3 .how should I write the smart markers in Cell B3?
I use .net aspose.cell to export excell. I want to export mutiple fields in one cell. The sample code is below.
Workbook workbook = new Workbook(fileName);
var head = new
{
InvoiceNo = "INV001",
SerialNo = "202503270001"
};
List headattr = new List();
headattr.Add(head);
var designer = new WorkbookDesigner();
designer.Workbook = workbook;
designer.SetDataSource("head", headattr);
designer.Process();
var guidPath = Path.Combine("D:\TestAspose\Files", $"{Guid.NewGuid().ToString("N")}.xlsx");
workbook.Save(guidPath);
I want to export head.InvoiceNo and head.SerialNo in Cell B3, I hope export the value like 'InvoiceNo:INV001;SetialNo:202503270001' in B3 .how should I write the smart markers in Cell B3?