Mimic Powerpoint's behavior: Splitting long shapes into severalslides

  • Thread starter Ran 'chaosblade' Sagy
  • Start date
R

Ran 'chaosblade' Sagy

Hello Everyone.



I was wondering if there is a way to mimic PowerPoint's behavior when
shapes (mostly text or tables) get too long - In the UI, You can click
the little helper icon that pops up to split the shape into two
slides, effectively cutting the text\table into two.So far, I haven't
found a way to do this via VSTO or any other way programattically.

The problem i'm trying to solve is text and table shapes getting too
long in my application, As i am building PowerPoint documents straight
from XML.



Any help in this matter will be greatly appreciated. Thanks in
advance.



-- Ran Sagy, Software Developer.
 
S

Shyam Pillai

A native solution does not exist for this. You will need to mimic the smart
tag behavior. Determine programatically at what point you want to split the
text and then copy the rest over to another shape. Reading the text frame
properties will help.

--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 
R

Ran 'chaosblade' Sagy

A native solution does not exist for this. You will need to mimic the smart
tag behavior. Determine programatically at what point you want to split the
text and then copy the rest over to another shape. Reading the text frame
properties will help.

--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.www.animationcarbon..com

That's what i was afraid of. Seems an overly complex solution to the
problem.
Anyway, Thanks for the reply - I'll get to it and see if i can come up
with something stable enough to work (considering things like font
size and line spacing have to come in mind, maybe even resolutions).
 
S

Steve Rindsberg

That's what i was afraid of. Seems an overly complex solution to the
problem.
Anyway, Thanks for the reply - I'll get to it and see if i can come up
with something stable enough to work (considering things like font
size and line spacing have to come in mind, maybe even resolutions).

The .TextRange.BoundHeight , .BoundWidth, .BoundTop, .BoundLeft properties will
tell you what you need to know.
 
R

Ran 'chaosblade' Sagy

The .TextRange.BoundHeight , .BoundWidth, .BoundTop, .BoundLeft propertieswill
tell you what you need to know.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================

Thanks, Steve, I'll have a further look and report back with good
results (hopefully).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top