Cannot make multiple tables?

Home Forums Open-Xml-PowerTools Cannot make multiple tables?

This topic contains 1 reply, has 2 voices, and was last updated by  Eric White 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4010

    rogersb
    Participant
    Important note: Your new customer ID: <Content Select="./CustomerID" />.
    
    <Repeat Select="./Orders/Order"/>
    
    When you create pictures, charts, or diagrams, they also coordinate with your current document look.
    <Table Select="./Orders/Order" />
    Description	Quantity	Order Date
    ./ProductDescription	./Quantity	./OrderDate
    
    The description for Order #<Content Select="@Number"/> is <Content Select="./ProductDescription"/>.
    Quantity: <Content Select="./Quantity"/>
    Date: <Content Select="./OrderDate"/>
    <EndRepeat/>
    

    With the Table Select .orders/order within the repeat section? it never gets data. The goal here is to have a table that fills in contents for as many groups as there are. Why does the table not work? in the output document it only has

    Table Select returned no data

    #4021

    Eric White
    Keymaster

    The node select for the table is relative to the node selected for the outer repeat section. This would mean that you would have to have XML that looked like this:

    <Orders>
      <Order>
        <Orders>
          <Order>

    Which I would guess is not what you have. For the select for the table, be aware of what the current node is, which will be based on the enclosing repeat.

    Make sense?

    • This reply was modified 7 years, 4 months ago by  Eric White.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.