[Q]Office Automation...(PowerPoint..) with client script
-
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