Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6684957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:00:00+00:00 2026-05-26T05:00:00+00:00

Hi Guys : I wanted to create a power point presentation using a raw

  • 0

Hi Guys : I wanted to create a power point presentation using a raw text file, so that i can rapidly edit the file and see the results, gauranteed with uniform formatting. Basically, I’m talking about separating the data content from the presentation.

How can I do this ? Im thinking that maybe Latex could be a choice. I’ve also seen that there are API’s for Powerpoint and open office presentations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:00:01+00:00Added an answer on May 26, 2026 at 5:00 am

    Powerpoint exposes it’s API via COM – which makes it possible to do (almost) anything that you can do in the GUI in any programming language that supports COM. The difficulty is that the API changes between releases. One way to scope out the API is to use the macro recording facility to manually do one slide, and then translate that to your target language.

    I’ve got some old (not tested recently) python code for Powerpoint 2003 that should give you an idea of what the code might look like depending on your layout needs.

    from win32com.client import Dispatch
    
    ppLayoutTitle = 1
    ppLayoutText  = 2
    
    def writePresentation( fname, data ):
        pptApp = Dispatch('Powerpoint.Application')
        pres   = pptApp.ActivePresentation
        aw     = pptApp.ActiveWindow
        slides = pres.Slides
    
        for item in data:
            t1 = item[0]
            t2 = item[1]
            stype = item[2]
            assert(stype in [ppLayoutTitle,ppLayoutText])
            s = slides.Add( slides.Count, stype )
            aw.View.GotoSlide(s.SlideIndex)
    
            s.Shapes.Item(1).Select()
            aw.Selection.ShapeRange.TextFrame.TextRange.Select()
            aw.Selection.ShapeRange.TextFrame.TextRange.Characters(Start=1, Length=0).Select
            tr = aw.Selection.TextRange
            tr.Text = t1
    
            s.Shapes.Item(2).Select()
            aw.Selection.ShapeRange.TextFrame.TextRange.Select()
            if stype == ppLayoutText:
                aw.Selection.ShapeRange.TextFrame.TextRange.ParagraphFormat.Bullet.Visible = 0
            aw.Selection.ShapeRange.TextFrame.TextRange.Characters(Start=1, Length=0).Select
            tr = aw.Selection.TextRange
            tr.Text = t2
        slides.Range(slides.Count).Delete()
        pres.SaveAs(fname)
    

    Edit:

    Openoffice (that can export to powerpoint) also ships with it’s scripting API that could be used to solve similar problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

guys which text editor is good for Rubyonrails? i m using Windows and i
I just wanted to run my login script by you guys to see if
Right, hi guys, I recently followed a tutorial http://xnadevelopment.com/tutorials/thestateofthings/thestateofthings.shtml where I wanted to create
Well... I am trying to create an application using the TTS Engine. I can
I wanted to share with you guys a function I had created to see
hi guys I wanted to know, is there a way to not display my
Guys, can someone give me a brief run through of how to change the
Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I
Guys, I am using SQL Server 2000 and executing the sp_columns stored procedure to
Guys, what is function called after my class loaded, where i can call self

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.