How can I add text in a ppt?
How can I add text in a ppt?
(OP)
I found how add Picture inside a ppt in below thread:
http://www.eng-tips.com/viewthread.cfm?qid=330252
But I would need also to add a text from a catscript. How can I do this? I tried like below but it does not work:
CODE -->
ppt.ActiveWindow.Selection.SlideRange.Shapes.AddTextbox(msoTextOrientationHorizontal, 100, 100, 200, 50).TextFrame.TextRange.Text = "Test Box"
Thank you.





RE: How can I add text in a ppt?
I never thought about this but I've done the other way...I inserted a 2D annotation in CATIA and after that I took the screen capture...
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: How can I add text in a ppt?
I would need more control on the ppt in order to make it automatically using the company standard to be sent to our customer.
I want to make it a little bit more complex, with more functionality, but I was stuck just from the beginning with adding a simple text :)
Should be possible to add a text in a ppt using a catscript?
RE: How can I add text in a ppt?
if it is:
CODE --> vb.net
PPT = PPT.ActivePresentation Dim SlidesCount = PPT.Slides.Count Dim oSlide = PPT.Slides.Add(SlidesCount + 1, Powerpoint.PpSlideLayout.ppLayoutTitleOnly) With oSlide.Shapes.Item(1).TextFrame.TextRange .Text = TextBox1.Text' this is the string that adds the text .Font.Name = "Eurostile LT (Headings)" .Font.Size = 48 End WithTiago Figueiredo
Tooling Engineer
RE: How can I add text in a ppt?
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: How can I add text in a ppt?
I updated the intial code with below code inside a catscript:
CODE -->
CODE -->
With uNewS.Shapes.Item(1).TextFrame.TextRange .Text = AnnViewName 'this is the string that adds the text .Font.Name = "Eurostile LT (Headings)" .Font.Size = 48 End WithRE: How can I add text in a ppt?
How do you call PowerPoint?
Tiago Figueiredo
Tooling Engineer
RE: How can I add text in a ppt?
http://www.eng-tips.com/viewthread.cfm?qid=330252
For my catscript, I did exactly the same as in the example provided by ferdo.