Skip to content

Aspose Excell export use Smart markers #69

@sunzq071

Description

@sunzq071

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions