| View previous topic :: View next topic |
| Author |
Message |
zizi General User

Joined: 04 May 2012 Posts: 14
|
Posted: Fri May 04, 2012 3:12 am Post subject: SolveMacro : Add text to impress presentation slide (NewBie) |
|
|
Hi,
Have been trying to write a simple slide using macro for days and got to no where Just found a link that allows me to add a title to the slide. http://www.johndavidhead.com/jhead/johnhead.nsf/dx/symphony-thursday-developer-101-presentations-hello-world
However, I am unable to add text to the body of the slide. Any help or hint is appreciated to get me started is appreciated. Thank you !
Best,
Zizi
Last edited by zizi on Sun May 06, 2012 6:06 am; edited 1 time in total |
|
| Back to top |
|
 |
DVezina OOo Advocate

Joined: 29 Sep 2006 Posts: 248 Location: Orlando
|
Posted: Fri May 04, 2012 12:41 pm Post subject: |
|
|
Slide.layout = 1 gives you a slide with two shapes. The first the title and the second is the body.
To enter text in the body, you need to get that shape, create a cursor and then enter your text.
| Code: |
Set body=Slide.getbyindex(1)'the second shape is the body
Set BodyText=body.getText()
Set Cursor=BodyText.createTextCursor()
Call BodyText.insertString(Cursor,"Outline Item 1" & Chr(10) & "Outline Item 2",False)
|
Hope that gets you started. |
|
| Back to top |
|
 |
zizi General User

Joined: 04 May 2012 Posts: 14
|
Posted: Fri May 04, 2012 2:08 pm Post subject: |
|
|
| Thanks a lot for this. Is there any links that I could study ? I have tried searching the net and found none. There were a lot on writer but not really on impress . |
|
| Back to top |
|
 |
zizi General User

Joined: 04 May 2012 Posts: 14
|
Posted: Sat May 05, 2012 2:34 am Post subject: Solved |
|
|
Hi,
Thanks a lot for this. It has got me started.
Best,
Zizi |
|
| Back to top |
|
 |
|