You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Pierce Krouse <pk...@boundlessnetwork.com> on 2008/03/05 22:54:10 UTC

gettextrun and iterating shapes do not agree on content?

Greetings:
I am trying to clone a sheet for a powerpoint slideshow, and it
duplicates some text during the copy process.

I believe there is something amiss here.  For example, the source page I
am trying to copy has 3 TextBox objects, with the following text in
them:
TextRun 1:
${supplier} 
${bnid} 
${loop attributes}
TextRun 2:
${pricetable}
TextRun 3:
${photo}

When I go to the page and iterate the textruns, this is what I get.  All
well and good.  When I iterate the shapes, it's a different story. BTW I
am iterating the shapes so that I can get anchor locations for picture
placement.

When I iterate the shapes in the sheet, I stop and look in each TextBox
shape to see if it is some text I am interested in.  Iterating the sheet
this way, the textbox hits show:
1:
${supplier} 
${bnid} 
${loop attributes}
2:
${pricetable}
3:
${photo}
4:
${photo}

I don't know why this is so, but it leads to a problem both in looking
up interesting text in shapes that I want to act upon, but when I clone
the page later by copying shapes into a new sheet, the extra textbox
shows up in the upper left corner of the copied page.  The anchor
coordinates of the original, proper shape that shows up are the right
coordinates.  The new one has anchor coordinates of z=36, y=21.

Any ideas as to why this is happening and what I can do about it?


--Pierce Krouse
Boundless Network
(512)879-4417

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org