Aspose.Cells SmartMarkers List In List

Hi,

I use SmartMarkers for creating Reports.
My data:
public class Table1 : List
public class Section
{ public List Rows { get; set; }
public string Name { get; set; }
}
How should I write in Template(xlsx)
&=Table1.Name &=Table1.Rows
Is it supported?

With regrads, Irina

@irinaya,

Thanks for your query.

Well, Smart Markers has its own specifications, rules and formattings. Please see the document with example codes (see especially the sub-topics like Using Anonymous Types or Custom Objects, Using Nested Objects, Using Generic List as Nested Object, etc.) for your reference:

Thank you for Answer.

But I need yet one Level. Is it not working?

public class Level {
private List m_Husbands;
public List Husbands {
get { return m_Husbands; }
set { m_Husbands = value; }
}
}
public class Husband
{
private String m_Name;

        public String Name
        {
            get { return m_Name; }
            set { m_Name = value; }
        }

        private int m_Age;

        public int Age
        {
            get { return m_Age; }
            set { m_Age = value; }
        }

        internal Husband(string name, int age)
        {
            this.Name = name;
            this.Age = age;
        }

        // Accepting a generic List as a Nested Object
        private List<Wife> m_Wives;

        public List<Wife> Wives
        {
            get { return m_Wives; }
            set { m_Wives = value; }
        }

    }

System.Collections.Generic.List list = new System.Collections.Generic.List();
Level level = new Level();
level.Husbands = new List();
// Create an object for the Husband class
Husband h1 = new Husband(“Mark John”, 30);

        // Create the relevant Wife objects for the Husband object
        h1.Wives = new List<Wife>();
        h1.Wives.Add(new Wife("Chen Zhao", 34));
        h1.Wives.Add(new Wife("Jamima Winfrey", 28));
        h1.Wives.Add(new Wife("Reham Smith", 35));

        // Create another object for the Husband class
        Husband h2 = new Husband("Masood Shankar", 40);

        // Create the relevant Wife objects for the Husband object
        h2.Wives = new List<Wife>();
        h2.Wives.Add(new Wife("Karishma Jathool", 36));
        h2.Wives.Add(new Wife("Angela Rose", 33));
        h2.Wives.Add(new Wife("Hina Khanna", 45));

        // Add the objects to the list
        level.Husbands.Add(h1);
        level.Husbands.Add(h2);
        list.Add(level);


        // Specify the DataSource
        designer.SetDataSource("Level", list);

I use in Template(xlsx): &=Level.Husbands.Name and &=Level.Husbands.Wives.Name
When I write without yet one Level it looks great

With regrads, Irina

@irinaya,

I am afraid, such nested objects may not be supported in Smart Markers, so you got to follow what is documented with examples in the document/article for reference.