How to discover php COM class -


i want stuff in ms word documents using php (mostly search-replace), , i've discovered com class. have question (because i'm relative new on php), how can found methods related word example:

$objbookmark = $word->activedocument->bookmarks($bookmarkname); $range = $objbookmark->range; 

how should activedocument, bookmarks, range...etc. there way have list this?

to have autocomplete (intelisense) need php class model , ide. make work much easier.

one of best ide's have come acrross php tools visual studio. in visual studio plugin gallery or in devsense website. can use visual studio free community edition.

to generate php based class model can either use com built in function:

com_print_typeinfo ( object $comobject [, string $dispinterface [, bool $wantsink = false ]] )

or netphp component (this link step step example word interop) dump types inside binary complete php based class model:

http://www.drupalonwindows.com/en/blog/php-com-class-consuming-net-php

you can use netphp directly consume openxml binaries , manipulate word documents without interop:

http://www.codeproject.com/tips/994905/edit-word-documents-using-openxml-and-csharp-witho


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -