05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 15-2. Using Word’s macro language to expose OLE COM objects and parameters<br />

assumed syntax for the object method (in our case, Selection.Find.Execute( )).<br />

Then right-click in the parameter area to bring up the list of all parameters for the<br />

method, as shown in Figure 15-3.<br />

4. Values not in bold are optional in Word macros. <strong>PHP</strong> requires all values to be<br />

passed explicitly, however.<br />

5. Finally, convert the VBScript to corresponding <strong>PHP</strong> COM function calls, as<br />

shown here:<br />

<br />

362 | Chapter 15: <strong>PHP</strong> on Windows<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!