none
RowFields and Rowitems in pivot table (openXML) RRS feed

  • Question

  • Hi,

    Please explain RowField and Row items in the following code snippet.

     RowFields rowFields1 = new RowFields() { Count = (UInt32Value)1U };
                Field field1 = new Field() { Index = 0 };

                rowFields1.Append(field1);

                RowItems rowItems1 = new RowItems() { Count = (UInt32Value)5U };

                RowItem rowItem1 = new RowItem();
                MemberPropertyIndex memberPropertyIndex1 = new MemberPropertyIndex();

                rowItem1.Append(memberPropertyIndex1);

                RowItem rowItem2 = new RowItem();
                MemberPropertyIndex memberPropertyIndex2 = new MemberPropertyIndex() { Val = 1 };

                rowItem2.Append(memberPropertyIndex2);

                RowItem rowItem3 = new RowItem();
                MemberPropertyIndex memberPropertyIndex3 = new MemberPropertyIndex() { Val = 2 };

                rowItem3.Append(memberPropertyIndex3);

     

    thanks,

    Elangovan P

    Monday, January 2, 2012 9:42 AM

Answers