Results 1 to 4 of 4

Thread: Powerpoint and VB (Could REALLY use some expertise here!)

  1. #1

    Thread Starter
    Lively Member flint's Avatar
    Join Date
    Oct 2000
    Posts
    67

    Question

    I am trying to manipulate a Powerpoint presentation that I have inserted into my project. I want the presentation to show some information the user enters on a previous form.

    Scenario:
    On the Project -> Components window there is an Insertable Objects tab and if Powerpoint is installed on your system, you have the option of inserting a Powerpoint presentation.

    The Problem:
    I can't find a way to change the Text in a specific text field. Ideally, if this was based on an object structure it would be a no-brainer.

    Code:
    MyPresentation.Slide1.txtTitle = "Title Goes Here"
    MyPresentation.Slide1.txtField1 = "Information"
    Plea for help!:
    Can someone please show me a method for doing this or at least point me in the right direction?

    Flint

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754

    Post

    Go To Project, References, Add a reference to Powerpoint Object Library, this should giv e you what you need. if you want more documentation do a search on MSDN, you should find some stuff in the Office / Visual Basic Programmers guide.

    Good Luck
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3
    Fanatic Member faisalkm's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    752

    Smile

    Hey crispin is right!!!!

    Faisal
    Faisal Muhammed
    Homepage:I Started making it in 1994 ...Still Under Construction
    Using

    Visual Basic 6.0 Enterprise SP5
    Embedded Visual Basic 3.0
    SQL Server 2000
    Windows 2000 Proff
    Delphi 6.0


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    As Crispin mentioned, if you add a reference, you can get all of the properties and methods. To view these, goto the object browser toolbar button (or the view menu), then type in your search phrases like slides, powerpoint etc and hit the question mark to get more info on this.

    The MSDN doesn't really help much on this, same as source code sites like vbcode.com.

    http://www.microsoft.com/officedev has how to access, open and run presentations, but I have been fiddling with this and cannot find a proper answer on this myself.

    I have found:
    http://search.microsoft.com/us/dev/d...=on&p=1&nq=NEW
    Look at number 7 as this may well be of some help

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width