poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierce Krouse" <pkro...@boundlessnetwork.com>
Subject gettextrun and iterating shapes do not agree on content?
Date Wed, 05 Mar 2008 21:54:10 GMT
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
TextRun 1:
${loop attributes}
TextRun 2:
TextRun 3:

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

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:
${loop attributes}

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

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

View raw message