Click here to Skip to main content
15,889,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalreturnvalue message handler Pin
P e t e r25-Sep-00 22:00
P e t e r25-Sep-00 22:00 
GeneralTerminating DOS Process under WinNT/2000 Pin
Ronald L. Russell Jr. (Ron)25-Sep-00 13:19
sussRonald L. Russell Jr. (Ron)25-Sep-00 13:19 
GeneralCCheckListBox Base class Pin
jcyoon25-Sep-00 9:27
jcyoon25-Sep-00 9:27 
GeneralRe: CCheckListBox Base class Pin
Sam Hobbs25-Sep-00 12:44
Sam Hobbs25-Sep-00 12:44 
GeneralConvert Date&Time string to DATE type Pin
Tony Li25-Sep-00 5:52
Tony Li25-Sep-00 5:52 
GeneralUnicode/Ansi conversion macros in '.c' files Pin
Chris Vischer25-Sep-00 4:51
Chris Vischer25-Sep-00 4:51 
GeneralRe: Unicode/Ansi conversion macros in '.c' files Pin
Stober27-Sep-00 17:19
Stober27-Sep-00 17:19 
General[Q]Office Automation...(PowerPoint..) with client script Pin
Ryan Park24-Sep-00 23:04
Ryan Park24-Sep-00 23:04 
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
GeneralColors in my dialog... Pin
Fredrik24-Sep-00 21:35
Fredrik24-Sep-00 21:35 
GeneralBrowsers installed in my system Pin
santhosh kumar s24-Sep-00 21:21
santhosh kumar s24-Sep-00 21:21 
General*** Displaying COleVariant variables *** Pin
Steve Lai24-Sep-00 19:25
Steve Lai24-Sep-00 19:25 
QuestionRGB to 5.6.5 translation? Pin
Erik24-Sep-00 10:33
Erik24-Sep-00 10:33 
AnswerRe: RGB to 5.6.5 translation? Pin
Feng Yuan25-Sep-00 16:10
Feng Yuan25-Sep-00 16:10 
GeneralRe: RGB to 5.6.5 translation? Pin
Erik25-Sep-00 21:32
Erik25-Sep-00 21:32 
QuestionTear-off tabs? Pin
James Corrie23-Sep-00 13:37
sussJames Corrie23-Sep-00 13:37 
AnswerI have some code, but it isn't fineshed. Pin
David Wulff25-Sep-00 5:39
David Wulff25-Sep-00 5:39 
GeneralNo Subject Pin
Anonymous23-Sep-00 13:35
Anonymous23-Sep-00 13:35 
GeneralKeyboard hooks and sending keystrokes! Pin
Mustafa Demirhan23-Sep-00 10:58
Mustafa Demirhan23-Sep-00 10:58 
GeneralStretching Bitmap Problem Pin
mirsad23-Sep-00 3:39
mirsad23-Sep-00 3:39 
GeneralRe: Stretching Bitmap Problem Pin
Feng Yuan25-Sep-00 16:08
Feng Yuan25-Sep-00 16:08 
GeneralProgress Bar (PumpMessages() function problem?) Pin
Jon22-Sep-00 15:54
Jon22-Sep-00 15:54 
GeneralRe: Progress Bar (PumpMessages() function problem?) Pin
Sam Hobbs23-Sep-00 9:00
Sam Hobbs23-Sep-00 9:00 
GeneralRe: Progress Bar (PumpMessages() function problem?) Pin
Jon23-Sep-00 17:40
Jon23-Sep-00 17:40 
GeneralRe: Progress Bar (PumpMessages() function problem?) Pin
Sam Hobbs24-Sep-00 14:43
Sam Hobbs24-Sep-00 14:43 
GeneralRe: Progress Bar (PumpMessages() function problem?) Pin
Jon24-Sep-00 15:31
Jon24-Sep-00 15:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.