Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. [Q]Office Automation...(PowerPoint..) with client script

[Q]Office Automation...(PowerPoint..) with client script

Scheduled Pinned Locked Moved C / C++ / MFC
toolsc++htmltestinghelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ryan Park
    wrote on last edited by
    #1

    Hi, I made a simple MFC app with webbrowser cotrol.. With this, I opened a local html file with vbscript in it.. The script follows: ' This procedure is a brief sample showing ' how to automate PowerPoint from Outlook. ' Get a reference to the PowerPoint Application object. Set appPowerPoint = CreateObject("PowerPoint.Application") ' Display the application. appPowerPoint.Visible = TRUE ' Open a sample presentation. appPowerPoint.presentations.Open("test.ppt") MsgBox "At this point PowerPoint is open and displays a document. The following statements will close the document and then close PowerPoint." ' Close the presentation. appPowerPoint.ActivePresentation.Close ' Quit PowerPoint. appPowerPoint.Quit ' Close the object variable. Set appPowerPoint = Nothing And there occurs an error... It means on the next line of --Set appPowerPoint = CreateObject("PowerPoint.Application")-- Next line is blank...and the message means like.. -->you missed ")" ( I can't remember exactle what it was..) What I wonder is.. 1. Can I use Office automation like vb in clien vbscript?? 2. If #1 possible...plz show me some code... Thanks for reading.. Any suggestion?? Regardz -Ryan

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups