Results 1 to 2 of 2

Thread: Powerpoint couldn't be generated.... [ HELP!!]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    22

    Unhappy Powerpoint couldn't be generated.... [ HELP!!]

    I've compiled my VB program into an EXE application. When I run this EXE in my computer(which contains VB), the powerpoint can be automated. However, when the applicaiton is run from another computer(without VB), the powerpoint applicaiton cannot be automated.

    Do I need any library/ocx/....??

    I used this code below to generate the powerpoint.
    ppApp = new powerpoint.application

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    That means you referenced something in the VB code, but you didn't package the referenced item when compiling.

    You can... recompile the project including the referenced file (package and deployment)

    Or

    use :
    VB Code:
    1. Dim ppApp As Object
    2.    
    3.     Set ppApp = CreateObject("Powerpoint.Application")
    4.     ppApp.Visible = True
    5.    
    6.     Set ppApp = Nothing

    This ofcourse assumes the user has powpoint installed...


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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