RE: [PHP-WIN] Com++ Word AND PHP?

2007-10-09 Thread Gustav Wiberg
/Gustav -Original Message- From: John Mertic [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:28 PM To: Gustav Wiberg Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Com++ Word AND PHP? Also try doubling up the backslash or using a forward slash on Windows $word->Documents

RE: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
ober 08, 2007 3:28 PM To: Gustav Wiberg Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Com++ Word AND PHP? Also try doubling up the backslash or using a forward slash on Windows $word->Documents[1]->SaveAs("C:\\hello2.doc"); --or-- $word->Documents[1]->SaveAs("C:/hello2

Re: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread John Mertic
Gustav Wiberg <[EMAIL PROTECTED]> wrote: > Hi > > Nope it didn't seem to solve it. > > Best regards > /Gustav Wiberg > > -Original Message- > From: John Mertic [mailto:[EMAIL PROTECTED] > Sent: Monday, October 08, 2007 3:20 PM > To: Gustav Wiberg

RE: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
Hi Nope it didn't seem to solve it. Best regards /Gustav Wiberg -Original Message- From: John Mertic [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:20 PM To: Gustav Wiberg Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Com++ Word AND PHP? Perhaps changing the 0

Re: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread John Mertic
Perhaps changing the 0 to 1 in the line would fix it, namely: $word->Documents[1]->SaveAs("C:\hello2.doc"); John On 10/8/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to run Word and save as a document in PHP. I have tested... > > $word = new COM("word.application"); > //To s

Re: [PHP-WIN] COM Features

2006-05-26 Thread Leonardo Dutra
On Wed, 2006-05-24 at 17:44 -0300, Leonardo Dutra wrote: > Hi, > > I'm trying get some features from TAPI3.DLL using COM Support im PHP. > > PHP Version: 5.1.4 (CLI scene) > OS: WinXP > > My doubt is how can I call ITAddress::QueryInterface method ? What > parameters I need here? Well, I see

RE: [PHP-WIN] COM Object and Acrobat 6

2004-10-21 Thread Gryffyn, Trevor
> -Original Message- > From: Weber Bernd-Thomas [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 21, 2004 7:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] COM Object and Acrobat 6 > > I try to access Acrobat 6 as COM Object. My problem is that I > don't know the aviable methods. >

RE: [PHP-WIN] COM on remote machine + MapPoint COM question?

2004-04-29 Thread Gryffyn, Trevor
I'm playing around with COM right now doing things with PHP and MapPoint. I got the feeling that COM was something that had to work on the local machine because you needed the COM information in your registry to tell the computer what application to run. That is, PHP says "Open COM connection to

Re: [PHP-WIN] COM programming and InDesign 2.0

2002-11-29 Thread Luis Ferro
foreach ($myStories as $Story) { $myParagraphs = $Story->Paragraphs; } Cheers... Luis Ferro Frode Mangseth wrote: I'm working on a script to control Adobe InDesign 2.0 through COM. And I'm using som Visual Basic examples to teach myself. What I'm stuck on is this VB-code: For Each Story I

RE: [PHP-WIN] COM gurus... please help

2002-10-25 Thread Scott Carr
Sorry, you already stated that in your first email. What user is IIS running as? You need to set it to a user of the system, the system user will not work. Also, you may need to look into the DCOM config settings to make sure all users have access to COM on the system. Most of my problems with

RE: [PHP-WIN] COM gurus... please help

2002-10-25 Thread Scott Carr
What OS are you running this on? -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting "Asendorf, John" <[EMAIL PROTECTED]>: > UPDATE > > Well, I've got it working now, KINDA. Here's the problem, when I call the > script the first time, it runs fi

RE: [PHP-WIN] COM gurus... please help

2002-10-25 Thread Asendorf, John
UPDATE Well, I've got it working now, KINDA. Here's the problem, when I call the script the first time, it runs fine and displays the map properly. BUT, if I call the script again, it won't run. If I wait for the $objMapSvr object to timeout, it will run again, or if I stop and start the Map Se

RE: [PHP-WIN] COM gurus... please help

2002-10-24 Thread Asendorf, John
um sine mixtura dementiae fuit > -Original Message- > From: Scott Carr [mailto:scarr@;progbits.com] > Sent: Thursday, October 24, 2002 10:08 AM > To: Asendorf,John > Cc: PHP Windows > Subject: Re: [PHP-WIN] COM gurus... please help > > > What are you trying

Re: [PHP-WIN] COM gurus... please help

2002-10-24 Thread Scott Carr
What are you trying to use? MapServer, what is that. If you are trying to do web mappin, I suggest you look at the MapServer project from University Of M... at http://mapserver.gis.umn.edu/. It is a very good mapping system that uses ESRI Shp files as well as several others. It also has a dir

Re: [PHP-WIN] COM and Word, how?

2002-09-03 Thread Michelle
> this worked on my test system .. > > win2k sp2, > apache 1.2.34 > php 4.2.2 When you print out phpinfo(), does the COM setting look like this? COM: Directive, Local Value, Master Value com.allow_dcom, Off, Off com.autoregister_casesensitive, On, On com.autoregister_typelib, Off, Off com.autoreg

Re: [PHP-WIN] COM and Word, how?

2002-09-02 Thread David Tod Sigafoos
Hello Michelle, this worked on my test system .. win2k sp2, apache 1.2.34 php 4.2.2 dsig Monday, September 2, 2002, 10:03:50 AM, you wrote: M> I am new to COM and tried an example today (See bottom of post) M> When I execute the code, I get is an error message and if I look in the Task M> Ma

Re: [PHP-WIN] COM Problem

2002-06-14 Thread Scott Carr
Fixed... Found that the COM object had a form it used for some proecessing and it did not Unload the form before exiting. -- Scott Carr OpenOffice.org Whiteboard-Doc Maintainer http://whiteboard.openoffice.org/doc/ Quoting Scott Carr <[EMAIL PROTECTED]>: > I have a VB ActiveX DLL that I am tr

RE: [PHP-WIN] COM Problem

2002-05-21 Thread Scott Hurring
> Sent: Tuesday, May 21, 2002 2:53 PM > To: Scott Hurring > Subject: Re: [PHP-WIN] COM Problem > > > Scott, > > Thanks for the quick reply. > > I checked for the zombie processes and as you suspected there were > several...I restarted my computer. > &g

RE: [PHP-WIN] COM Problem

2002-05-21 Thread Scott Hurring
Well, first off, CTL+ALT+DEL and see if you have any zombie procs of MSword laying around and kill them. When i was developing an Excel COM program, the EXCEL.exe would hang around in memory and screw up the "legit" EXCEL process (beucase of issues with the COM implementation < 4.2.1) Lines like

Re: [PHP-WIN] COM and ADODB access

2002-04-17 Thread Alan Brown
There were definitely two nasty bugs in the COM code which I believe that I have fixed and checked into CVS. But the root cause of your problem is actually a COM exception thrown by ADODB.Connection. I see this exception when I pass "position" (a valid field name in the database) in a SQL queries

Re: [PHP-WIN] COM and ADODB access

2002-04-16 Thread Alan Popow
On Tue, 16 Apr 2002 09:26:35 -0500, you wrote: >It may be the ADO connection with Access. I am not sure. DB_adodb is a DB >class I am writing for the Pear_DB abstraction layer. > >I am attaching it to this email so everyone can look at it. At this point it is >kind of a hack. There is no capa

Re: [PHP-WIN] COM and ADODB access

2002-04-16 Thread Scott Carr
Sorry, the attachment didn't work right. The DSN structure is as follows: adodb:///Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\path\\to\\database.mdb adodb:///Data Source={ODBC DSN} Everything after the last / is considered the ADO Connection string. -- Scott Carr OpenOffice.org Whiteb

Re: [PHP-WIN] COM and ADODB access

2002-04-16 Thread Scott Carr
It may be the ADO connection with Access. I am not sure. DB_adodb is a DB class I am writing for the Pear_DB abstraction layer. I am attaching it to this email so everyone can look at it. At this point it is kind of a hack. There is no capability in ADO to count the number of records that a q

RE: [PHP-WIN] COM on NT

2002-02-26 Thread alain samoun
COM support is included in the win binaries, you don't need any dll to use it. You probably need to set the permissions for the specific program that you are trying to instantiate (outlook). Use the DCOMcnfg.exe file. A+ Alain -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED

RE: [PHP-WIN] Com

2002-01-31 Thread Shrock, Court
Joe, here is a link that will help in learning how to do COM (an excel example included): http://phpbuilder.com/columns/alain20001003.php3 > -Original Message- > From: Mainolfi, Joe [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 11:22 AM > To: 'PHP-WIN' > Subject: [PHP-WI

RE: [PHP-WIN] COM adn PHP4

2002-01-04 Thread alain samoun
Replace: $ret=com_propset($word,Selection.Font.bold,True); $word->Selection->Font->bold("$ret"); With: $word->Selection->Font->bold=true; #Set font to bold for rest of document Or, to set all document to font/bold: $word->Documents->Add(); $myRange = $word->ActiveDocument->

Re: [PHP-WIN] COM again

2001-10-02 Thread Jørg V. Bryne
I configured php 4.0.6 as an ISAPI module, and it works perfectly now. I guess this has something to do with ACL's in IIS... -Jørg "JøRg V. Bryne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmm. It seems it's working, it just give out false replies all th

Re: [PHP-WIN] COM again

2001-10-02 Thread Jørg V. Bryne
Hmm. It seems it's working, it just give out false replies all the time. (IE. Axapta which is a databasesystem won't find any data). I would guess this has to do with IIS config or something. We run PHP as CGI. Does anyone now if this affects security/user policies in w2k iis? Will try reconfig to

Re: [PHP-WIN] COM again

2001-10-01 Thread Alain Samoun
> I'm having some trouble getting around with COM objects. Is there any way > that one can list the methods/properties of an instanciated COM object? Read the doc if available. > > Also. I'm having trouble getting an ASP-script to work, so maybe someone > could help me translate? I've been starin

RE: [PHP-WIN] COM /DCOM

2001-09-30 Thread alain samoun
Did you set-up the permissions in DCOMCNFG.EXE? This applies for COM and DCOM in win2000 and NT. Also, DCOM has to be enabled when compiling PHP4.x Alain -Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 29, 2001 4:58 PM To: [EMAIL PROTECTED] Subject: [PHP

Re: [PHP-WIN] COM - accessing pointer variables

2001-09-20 Thread park
Well if I have a func like this ( im trying to get it to work with the simplist case now ) HRESULT test( [ out, ref ] unsigned char *n ); I can call that from PERL like use Win32::OLE; use Win32::OLE::Variant; $obj = Win32::OLE->new( "comobjectname" ); $n = Variant( VT_UI1 | VT_BYREF, 0 ); $ob

Re: [PHP-WIN] COM - accessing pointer variables

2001-09-19 Thread Alain Samoun
I'm not sure, but try: $str = new VARIANT($obj->Get_Version_Str() , VT_STR | VT_BYREF ); or simply: $str = $obj->Get_Version_Str(); Also, are you sure that release() is part of your object definition? > $obj->Release(); Alain On Wed, Sep 19, 2001 at 08:50:52AM +0100, park wrote: > Im afraid I

Re: [PHP-WIN] COM - accessing pointer variables

2001-09-19 Thread park
Im afraid I dont know VB script so I cant tell you, to call it from C you would use: ITest *ptr = CoCreateObject( CLSID_Test.. ) char str[ 1024 ]; ITest->Get_Version_Str( str, sizeof( str ) ); // str contains the version string ITest->Release(); Last night I looked through the php source

RE: [PHP-WIN] COM - accessing pointer variables

2001-09-18 Thread alain samoun
Do you have a VB script showing how it connects to your COM object? Alain -Original Message- From: park [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 3:18 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] COM - accessing pointer variables I have a method into my COM object spe

Re: [PHP-WIN] COM objects win2000 PHP4.02

2001-09-01 Thread Mats Bjerin
ize wrote: > After changing the permissions using dcomcnfg.exe, it is working. I never > knew that existed.. Thanks Alan! Also thanks to everyone else who had > suggestions. > > rob. > > -Original Message- > From: Alan Brown [mailto:[EMAIL PROTECTED]] > Sent: Tuesd

RE: [PHP-WIN] COM objects win2000 PHP4.02

2001-08-28 Thread Mize, Robert
Subject: Re: [PHP-WIN] COM objects win2000 PHP4.02 Probably the user account that the web site is running under (looks like IIS, so IUSR_) does not have permission to instantaite the word component. What are the permissions on the directory containing winword.exe and on the exectuable itself? It could

Re: [PHP-WIN] COM objects win2000 PHP4.02

2001-08-28 Thread Alain Samoun
Did you check: http://www.php.net/manual/de/install.iis.php#install.iis.iis4 You seem to have a permission problem. Don't forget that PHP code works on the server side, so you need to have word enabled for your server. Also check the win2k process list because for every time the script crashes you

Re: [PHP-WIN] COM+ State and IIS Restart

2001-08-10 Thread Leon
OK!!! Got FUCKED OFF with IIS5. Installed Apache and all my troubles have gone away. Next I'll replace term serv client with SSH :) Cheers Leon -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

RE: [PHP-WIN] COM+ State and IIS Restart

2001-08-10 Thread Svensson, B.A.T.
>Please help because the server then goes into a nasty state after restarting >the service of giving access violation errors to browsers and all sorts of >other nasties! One might also consider this as a nice feature, helping to decrease the work load at the server. :) -- PHP Windows Mailing Li

Re: [PHP-WIN] Com not work in PHP 4.0.5

2001-05-24 Thread Alain Samoun
Yes, COM is completely broken in PHP4.05 :( Try 4.06 version at: http://www.zend.com/snapshots/ Alain On Thu, May 24, 2001 at 03:56:42PM +0400, Igor wrote: > When I try to call COM funcs in php 4.0.5, I recieve system error (memory > read/write error) > [COM is built-in in PHP for Win and I don`

RE: [PHP-WIN] COM

2001-04-05 Thread alain samoun
Check: http://www.phpbuilder.com/columns/alain20001003.php3 and for Excel: http://phpclasses.upperdesign.com/browse.html?package=86 One thing, to remember is that since PHP is server side only, you can't expect it to open a COM object on the client side... Also, multiple errors may fill up the pr

RE: [PHP-WIN] COM Question

2001-03-14 Thread Mal McKay
use the object's native close function, and then unset the variable, eg $microsoft_word->quit(); $microsoft_word=null; mal -Original Message- From: James Q. Stansfield [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 02:17 To: php-windows Subject: [PHP-WIN] COM Question Alrigh

Re: [PHP-WIN] COM Question

2001-03-14 Thread Alain Samoun
In PHP COM, you do not need to close the instance of your object, you can unset it if you want but it's not even necessary. Alain On Tue, Mar 13, 2001 at 09:16:36PM -0500, James Q. Stansfield wrote: > > Alright, I've gotten COM to work under PHP with the following: > > <% > $com = new com(

Re: [PHP-WIN] COM error

2001-03-14 Thread Yoann Chevalier
There is no "syntax error" it works for me. $word = new COM("word.application") or die("Unable to instantiate Word"); It's maybe a "configuration error". I have PHP 4.0.5-dev, Apache 1.3.17 and Windows 98 SE Yoann - Original Message - From: "Patrice Mora" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP-WIN] COM Objects anyone?

2001-03-12 Thread MD
Thank you very much! Mike "Mikey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This URL give you a list of all Excel methods & properties, if you show the > Table of Contents, it gives you listings for all of the Office apps: > > http://msdn.microsoft.com/l

RE: [PHP-WIN] COM Objects anyone?

2001-03-12 Thread Mikey
This URL give you a list of all Excel methods & properties, if you show the Table of Contents, it gives you listings for all of the Office apps: http://msdn.microsoft.com/library/officedev/off2000/xltocobjectmodelapplication.htm Mikey >= Original Message From "MD" <[EMAIL PROTECTED]> =

Re: [PHP-WIN] COM and PHP

2001-02-06 Thread Yoann Chevalier
Look at this example : http://www.phpbuilder.com/columns/alain20001003.php3?page=3 I think you forgot to activate the workbook, then to select the sheet and then to activate the sheet before writing into the cell ! Yoann. - Original Message - From: Conover, Ryan <[EMAIL PROTECTED]> To: