[PHP-WIN] COM and com_safearray_proxy objects

2008-11-04 Thread Alex Bovey
Hi all, I'm trying to get my head around COM and interfaces and I'm making slow progress but have hit a problem. I have an IProduct interface and using com_print_typeinfo($iproduct) I can see it has the following property (amongst others): /* DISPID=1745027081 */ var $Description;

[PHP-WIN] COM-problem: Uninitializing COM-Objects <-> runtime error

2008-07-02 Thread Mario Trojan
Hi, i have a problem regarding some COM objects, especially with unitializing. It is possible to create a new COM object without problems, but at the end of each script a message is shown by the Microsoft Visual C++ Runtime Library: "This application has requested the runtime to terminate it

[PHP-WIN] COM - Problem with Dates

2007-11-22 Thread Oliver Espeter
Hi, I have problems fetching data from an special database over a com-based sdk. With VisualBasic it's not a problem, but the same code doesn't work with php. First some Data: - The database system holds high compressed industrial data and is called OSI-PI. The system itself is under a comercial

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: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Gustav Wiberg
or the Windows version of PHP." Just for you to know :-) /Gustav -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:49 PM To: George Pitcher Cc: Gustav Wiberg; php-windows@lists.php.net Subject: Re: FW: [PHP-WIN] Com++ Word AND PHP? George

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

2007-10-08 Thread Stut
George Pitcher wrote: Gustav Wiberg wrote: Mis-attributed. This was in my reply to Gustav. I do this on my WinNT server - in fact its the only thing left stopping me from moving to Linux! "COM functions are only available for the Windows version of PHP." My point exactly. When I am able

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

2007-10-08 Thread George Pitcher
> Gustav Wiberg wrote: Mis-attributed. This was in my reply to Gustav. > > I do this on my WinNT server - in fact its the only thing left > stopping me > > from moving to Linux! > > "COM functions are only available for the Windows version of PHP." My point exactly. When I am able to create a Wo

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: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread Stut
Gustav Wiberg wrote: I do this on my WinNT server - in fact its the only thing left stopping me from moving to Linux! "COM functions are only available for the Windows version of PHP." From http://php.net/com -Stut -- http://stut.net/ -- PHP Windows Mailing List (http://www.php.net/) To uns

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

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

2007-10-08 Thread Gustav Wiberg
-Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:02 PM To: Gustav Wiberg Subject: RE: [PHP-WIN] Com++ Word AND PHP? Gustav, > I'm trying to run Word and save as a document in PHP. I have tested... > > $word = new COM(&qu

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

2007-10-08 Thread Gustav Wiberg
Hi I'm trying to run Word and save as a document in PHP. I have tested... Version echo "I'm using MS Word {$word->Version}"; //It's better to keep Word invisible $word->Visible = 0; //Creating new document $word->Documents->Add(); //Setting 2 inches margin on the both sides $word->Selection->Pa

[PHP-WIN] COM, DLL

2006-10-26 Thread Amit Stein
I have this problem. I am running a php application , that calls a dll, through COM ($obj=new COM("foo.dll"), and this works fine. My problem is that each time i call from a php a function from this dll, the dll initialiazes again, which happens to be very time consuming because it reads a lot of

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

[PHP-WIN] COM Features

2006-05-24 Thread Leonardo Dutra
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? Here's example: // $address is A ITAdress object $iTName = new Variant("ITAddressCap

[PHP-WIN] COM Dlls Not Unbinding From Process

2005-12-31 Thread Alex Turner
Hi All, I am doing a lot of PHP work with COM. The system uses php 4.3.3.3 and php is being driven via FCGI from our own web server (TAG). We create an instance of an in-process COM server using the following technique: function GetFactory() { static $obj; static $objSet = 0; if($o

[PHP-WIN] COM issue, different behaviour between cli and browser

2005-04-13 Thread Simon Taylor
Hi All, I have the following bit of code which works fine in a browser window, but as soon as I try it in cli mode it fails. I have a lot of other COM stuff which works just fine, just this one. Any ideas welcome. $oDso = new COM("WinNT:"); $oComp = $oDso->OpenDSObject("WinNT://DOMAIN/HOST$,user",

[PHP-WIN] COM - setting an indexed property

2005-01-24 Thread Dale Schell
I have a COM object "com" with a property "prop". "prop" is an indexed array. I am using PHP 5.1.0-dev. None of the following work: $com->prop(0) = 'blue'; $com->prop(0, 'blue'); $com->prop = array ('blue'); Is there a way to write to an indexed property? Dale Schell -- PHP Windows Mailing L

[PHP-WIN] COM syntax help

2005-01-05 Thread Ron.Herhuth
I am working with MS Word through the COM object. I have figrued out how to do almost everything I need, but I want to insert a page break. This is the code that I get from the VB Editor: Selection.InsertBreak Type:=wdPageBreak I tried this but it doesnt like it: $word->Selection->InsertBreak(

[PHP-WIN] COM errors

2005-01-05 Thread Dirc
I am using a VB component for encryption/decryption of data. It in turn uses the CAPICOM EncryptedData object as provided by Microsoft. Having instatiated the object successfully, I am trying to run a method on that object which fails ~60% of the time for no apparent reason. The weird thing is th

[PHP-WIN] COM error problem with PHP 4.3.2

2005-01-05 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a VB component which encrypts/decrypts passwords using the CAPCIOM EncryptedData object. Internal to the VB component is an 'On Error Resume Next' statement before running a method on the decrypt method. For some reason, if there is an error on the decrypt method, rather than carry on to t

[PHP-WIN] COM error problem with PHP 4.3.2

2005-01-05 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a VB component which encrypts/decrypts passwords using the CAPCIOM EncryptedData object. Internal to the VB component is an 'On Error Resume Next' statement before running a method on the decrypt method. For some reason, if there is an error on the decrypt method, rather than carry on to t

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&#x

[PHP-WIN] COM Object and Acrobat 6

2004-10-21 Thread Weber Bernd-Thomas
Hi, I try to access Acrobat 6 as COM Object. My problem is that I don't know the aviable methods. I want to rotate all landscape and then add page numbers. Any ideas? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] COM function

2004-06-22 Thread heekw
Hi, I couldn't run the com progam on my server but everthing well on my pc. The only different is server is using UNIX version while pc is Window version. It game me error like this -> "Fatal error: Cannot instantiate non-existent class: com in /home/www/hermes/data/program/log_report/TPSpar

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

2004-04-29 Thread Gryffyn, Trevor
where a truck is en route between an origin and destination given it's departure time and the current time of day. Hope some of this helps, Marc! Good luck! -TG > -Original Message- > From: M.Staiger [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 8:12 AM &

[PHP-WIN] COM on remote machine

2004-04-22 Thread M.Staiger
Hello NG, Imagine that you have one machine running iis with php and want to call a COM-Server (e.g. Word) on a remote machine.Would this be possible? How would it look like, if this is the call for the local machine : $word = new COM("word.application"); Thanks, Marc -- PHP Windows Mailing Lis

[PHP-WIN] COM Hangs Script if another Script is doing something at the same time

2003-11-13 Thread Scott Carr
Long subject but, it's a weird problem. I am running a system that has 1 COM object used in a couple different spots. Basically the usage is on 3 pages in a 30-40 page system. So it is not that many locations. I have noticed that if I am accessing a script at the same time a COM script is runni

[PHP-WIN] COM - ADODB connection...

2003-08-21 Thread Chris Kranz
so i have something like this... $xlsFile = $_FILES['fileupload']['tmp_name']; //the file we're reading is the one we just uploaded $conn= new COM("ADODB.Connection") or die( "did not connect" ); $conn->Open("Driver={Microsoft Excel Driver (*.xls)};DBQ=$xlsFile;ExtendedProperties=Excel 8.0;");

[PHP-WIN] COM Object help- have working .asp example - Paymentech

2003-07-02 Thread Marty Yantzie
I am trying to setup an small ecommerece site. I would like to use php to accomplish this. I have been able to get the .asp example to work fine but am having trouble getting the asp converted to php. Am i heading in the right direction? Any ideas? Here is a trimmed version of the PHP that I

[PHP-WIN] COM extension causing Apache to crash under W2000

2003-06-26 Thread Francesco Marsan
I have been able to access COM objects from PHP under W2000 without too much problems. Recently I set up a new W2000 server and the COM extension of PHP is not working. The first 6-10 calls I do to COM (to read Excel cells) work fine, but them subsequent ones provoke Apache crashing. Can someone he

[PHP-WIN] COM Objects and Response variable (from ASP)

2003-06-13 Thread Reuven Nisser
Hello, I am trying to convert an ASP script to PHP. The script is using COM objects and passes them 3 parameters: Request, Response & Session. When the same script is written in PHP what should I pass to the COM object? Request is $_REQUEST? Session is $_SESSION? What about Response? Thank you, R

[PHP-WIN] COM and reference or smart pointers ....

2003-04-01 Thread Ruben Goethals
Hi, I am writing a php application to use a com object that is defined in my OS, but I have difficulties getting a (smart)pointer from another com-object. Here is the code (untill the error): ** $ConnectionObj = new COM("Falcon.Connec

[PHP-WIN] COM and reference or smart pointers to com interface

2003-04-01 Thread Ruben Goethals
Hi, I am writing a php application to use a com object that is defined in my OS, but I have difficulties getting a (smart)pointer from another com-object. Here is the code (untill the error): ** $ConnectionObj = new COM("Falcon.Connec

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

[PHP-WIN] COM programming and InDesign 2.0

2002-11-29 Thread Frode Mangseth
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 In myStories Set myParagraphs = Story.Paragraphs Next Story How can I write this in PHP? BTW: I'd really appreciat

[PHP-WIN] COM issue, problems with return type.

2002-11-15 Thread Merritt, Eric
Hello all, I am having a little problem with return types from a COM object. Basically (code follows) I get a collection back from the object and I can not figure out a way to iterate through this collection. Posted is a snippet of test code that I hope one of you can help me with. DomainDNSNam

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

2002-10-25 Thread Scott Carr
magnum ingenium sine mixtura dementiae fuit > > > > -Original Message- > > From: Asendorf, John [mailto:JAsendorf@;lcounty.com] > > Sent: Thursday, October 24, 2002 9:47 AM > > To: Php-Windows (E-mail) > > Subject: [PHP-WIN] COM gurus... please help

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

2002-10-25 Thread Scott Carr
MAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Nullum magnum ingenium sine mixtura dementiae fuit > > > > -Original Message- > > From: Asendorf, John [mailto:J

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

2002-10-25 Thread Asendorf, John
t: Thursday, October 24, 2002 9:47 AM > To: Php-Windows (E-mail) > Subject: [PHP-WIN] COM gurus... please help > > > Hello all, > > PHP 4.2.3, NT4, IIS4 > > I finally have a practical application to use COM and I'm > trying to port > some ASP scripting. I

[PHP-WIN] COM advice ...

2002-10-24 Thread Michael Hazelden
Hi there, I thought I'd just drop a note with some advice that might be of use to you all. I am running some command line scripts which activate Cognos Impromptu via the COM interface. We are activating these scripts via scheduled tasks on a Windows 2000 server. We found that the COM interf

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

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

2002-10-24 Thread Asendorf, John
Hello all, PHP 4.2.3, NT4, IIS4 I finally have a practical application to use COM and I'm trying to port some ASP scripting. I'm getting an error (Warning: Invoke() failed: Exception occurred. Source: Unavailable Description: Unavailable in D:\spoof\gis\file.php on line 66 and then the timeout e

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

2002-09-04 Thread David Tod Sigafoos
Hello Michelle, Wednesday, September 4, 2002, 4:35:17 AM, you wrote: M> Just out of curiosity, did you run "dcomcnfg" and configure Microsoft Word M> security properties? Didn't run it .. Just ran it and got the following ... The CLSID {b58c2440-a1a3-11d1-B024-006097c9a284}, item c:\program f

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

2002-09-04 Thread Michelle
No problem... Just out of curiosity, did you run "dcomcnfg" and configure Microsoft Word security properties? And what version of Office do you use (including service packs)? Just trying to eliminate all that can be wrong on my setup... Thanks, // Michelle > Sorry .. I don't see my reply from

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

2002-09-03 Thread David Tod Sigafoos
Hello Michelle, Sorry .. I don't see my reply from earlier today .. Yes .. those are my specific settings. Tuesday, September 3, 2002, 5:33:13 AM, you wrote: >> this worked on my test system .. >> >> win2k sp2, >> apache 1.2.34 >> php 4.2.2 M> When you print out phpinfo(), does the COM settin

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

[PHP-WIN] COM and Word, how?

2002-09-02 Thread Michelle
I am new to COM and tried an example today (See bottom of post) When I execute the code, I get is an error message and if I look in the Task Manager, there is a WINWORD.EXE process running, which I can't end. Every time I reload the page, a new winword is started... How should PHP.ini be set for

[PHP-WIN] COM and XP

2002-07-23 Thread Aron Pilhofer
I have a number of COM scripts that ran perfectly.. until I got XP, and now they are acting very odd. I know based on reading some of the archive that I am not alone here. What I was not able to determine is this: - Has anyone figured out why it is that you cannot get excel, word, whatever to go

[PHP-WIN] COM stalls the server..

2002-07-07 Thread Ross Fleming
Hi again I'm trying a bit of COM programming in PHP but can't for the life of me figure out what's wrong. I've tried both Winamp (have winampCOM installed) and MS Word and it just seems to stall the server whenever I view a page with it. Can anyone explain why or is there a setting in php.ini I

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

[PHP-WIN] COM Problem

2002-06-13 Thread Scott Carr
I have a VB ActiveX DLL that I am trying to call from PHP. Everything works fine in the DLL except when I set the variable to null. The script just sits there forever until I kill it. The final code is: $buildgen->Release(); $buildgen = NULL; The release works fine. It is just the NULL that

[PHP-WIN] COM problem with Microsoft Word & passworded files

2002-06-08 Thread David McCormack
I'm trying to work on a search engine for my Intranet at work. It needs to be able to scan Microsoft Word & Excel documents so I'm planning on using the COM support in PHP + the Microsoft Word & Excel viewer program. At the moment I'm using Microsoft Word 2000 SR 2 to develop it however I've hit

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
s and return status of calls. and upgrade to the newest version PHP (if not already running it). --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message----- > From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] > Sen

[PHP-WIN] COM Problem

2002-05-21 Thread R.S. Herhuth
I built a script that converts a Microsoft Word file to text and removes common characters. The text will then be stored in a database for searching. The script below has been behaving a bit odd. It worked this morning but now all I get back is a blank screen and the text file it writes is bla

[PHP-WIN] COM vs. ODBC

2002-04-23 Thread Angie Tollerson
I'm going to be reading only some data from an excel file. Is there any benefit to COM or ODBC? I tried the COM route but my scripts always timed out. Any opinions one way or the other? Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED]

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
I can only assume this is something you are writing) and > I > > will trace into the source and find out what is happening and fix it if > > there is a bug or tell you what is wrong with your source otherwise. > > > > Alan. > > - Original Message - &

Re: [PHP-WIN] COM and ADODB access

2002-04-16 Thread Scott Carr
ssage - > From: "Scott Carr" <[EMAIL PROTECTED]> > To: "PHP Windows" <[EMAIL PROTECTED]> > Sent: Monday, April 15, 2002 17:43 > Subject: [PHP-WIN] COM and ADODB access > > > > I am having a problem with SQL statements passed to a COM object. >

[PHP-WIN] COM and ADODB access

2002-04-15 Thread Scott Carr
I am having a problem with SQL statements passed to a COM object. "SELECT * FROM Reports" works fine. "SELECT IDCode, Report_Name, Report_Description, Report_Status FROM Reports" blows up. I have been having this issue with 4.0.6 through 4.2.0 RC3. Has anybody else tried to pass semi-long st

[PHP-WIN] COM interop and recordsets

2002-04-11 Thread Fred Forsyth
I'm trying to write a PHP4 application that will connect to my Windows COM object. It deals with recordsets a lot. What I would like to know is, what do I need to do to interface with the methods (the recordsets are causing me problems right now) and how can I import the enums from the typelib? H

[PHP-WIN] COM Question

2002-04-01 Thread Aron Pilhofer
Can anyone suggest a good tutorial, or website, where I can find information about creating COM objects through PHP? I want to, for example, give users the ability to save result sets to their local computers in excel, or even access - if that's even possible. I've found a couple places with some

[PHP-WIN] COM/excel/graphs

2002-03-29 Thread [EMAIL PROTECTED]
hello, I'm trying to draw some graphs using COM objects, but it seems I can't set any property.. here's my script snip: $ex = new COM("Excel.sheet") or Die ("No COM"); print("Application name: {$ex->Application->value}"); print("Loaded version: {$ex->Application->version}"); $wkb =

[PHP-WIN] COM/Windows2000/IBM HTTP Server question

2002-03-12 Thread Lacey Sharpe
I am using php dated June 2001 - the latest version 4.1.1 would not run the php test program on IIS. With this version, I have a php file that will run on IIS. This php file calls COM objects. However, when I switch from IIS to IBM HTTP Server ( Apache based web server ). The same file will no

[PHP-WIN] COM Methods and Attributes

2002-03-01 Thread Vail, Warren
PHP is great at looking up requested methods and attributes for a COM object, if you have documentation and know the name used. Is there any way to use php to produce a list of methods and attributes for an invoked object (say IMAP.session)? Warren Vail Tools, Metrics & Quality Processes 215 Fr

RE: [PHP-WIN] COM on NT

2002-02-26 Thread alain samoun
EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 5:52 PM To: '[EMAIL PROTECTED]' Subject: [PHP-WIN] COM on NT I am trying to invoke COM on NT using the following line of code $outl = new COM("Outlook.Application") or die("Unable to instantiate Outlook"); and I get a D

[PHP-WIN] COM on NT

2002-02-26 Thread Vail, Warren
I am trying to invoke COM on NT using the following line of code $outl = new COM("Outlook.Application") or die("Unable to instantiate Outlook"); and I get a DR.Watson alert for php.exe shows an "access violation". This is my first attempt to exercise COM on this site, so it could be something

RE: [PHP-WIN] Com

2002-01-31 Thread Shrock, Court
' > Subject: [PHP-WIN] Com > > > is anyone out there familiar with COM built into Php? > This is my code: > > $sheet = Range("B6:B9")->Select; > $sheet->Selection->Borders(xlEdgeBottom); > $sheet->Selection->LineStyle = 9; //xlContinuous >

[PHP-WIN] Com

2002-01-31 Thread Mainolfi, Joe
is anyone out there familiar with COM built into Php? This is my code: $sheet = Range("B6:B9")->Select; $sheet->Selection->Borders(xlEdgeBottom); $sheet->Selection->LineStyle = 9; //xlContinuous $sheet->Selection->Weight = 2; //xlThin I get an error everytime I use the Range method and some othe

RE: [PHP-WIN] COM adn PHP4

2002-01-04 Thread alain samoun
$myRange = $word->ActiveDocument->Content; $myRange->Font->bold=true; A+ Alain -Original Message- From: stéphane BOUCHONNET [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 5:54 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] COM adn PHP4 Hello, I'm a french

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

[PHP-WIN] COM again

2001-10-01 Thread Jørg V. Bryne
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? Also. I'm having trouble getting an ASP-script to work, so maybe someone could help me translate? I've been staring at it for so long that I don't see

RE: [PHP-WIN] COM /DCOM

2001-09-30 Thread alain samoun
: [PHP-WIN] COM /DCOM Hi All Where is some good info on useing COM or DCOM with PHP? Both of my scripts bellow fail and I cannot seem to find why. or Version}\n"; $word->Visible = 1; $word->Documents->Add(); $word->Selection->TypeText("This is a test..."); $word-

[PHP-WIN] COM /DCOM

2001-09-29 Thread Mike
Hi All Where is some good info on useing COM or DCOM with PHP? Both of my scripts bellow fail and I cannot seem to find why. or Version}\n"; $word->Visible = 1; $word->Documents->Add(); $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); $word->Quit

[PHP-WIN] Com Help

2001-09-21 Thread Andy
Hey, When i try to use COM, my machine just doesn't do anything, for example, you click a link to a php page that has the COM line in it, the browser stays still for a while, then just times out. Does anyone know what could be causin this? Please let me know asap please :) email is preffered. [E

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
gt; > 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: [PH

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

2001-09-19 Thread park
lt;[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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

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

[PHP-WIN] COM - accessing pointer variables

2001-09-18 Thread park
I have a method into my COM object specified as: HRESULT Get_Version_Str( [ in, out, size_is( size ) ] unsigned char *str, [ in ] unsigned long size ); now how do I call this from PHP ? I think that I need to create the arg's as VARIANT but I cant get it to work :( please help park -- PH

[PHP-WIN] COM object - how do I specify the interface to extract

2001-09-14 Thread Crawley
Im playing around with custom COM objects ( my one currently has one method, which returns a 'long' ), I have tested the object from a 'C++' client and am still fighting to get the interface pointer out? ... its written in ATL and I cant see why its not responding correctly when I call QueryInter

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

[PHP-WIN] COM objects win2000 PHP4.02

2001-08-28 Thread Mize, Robert
I am having issues instantiating word or excel using COM. I get the error: Warning: Unable to obtain IDispatch interface for CLSID {000209FF---C000-0046}: Access is denied. in C:\Inetpub\wwwroot\website\excel\word.php on line 3 Unable to instanciate Word Line 3 is: $word = new COM

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

[PHP-WIN] COM+ State and IIS Restart

2001-08-09 Thread Leon
Hi all My latest problem is an interesting one. I think it is more an IIS issue than PHP. At random and with no common thread the server gets its panties in a knot and gives me a few errors. In the App log - Com+ detected a problem with its internal state. In the log - IIS Admin has reset, Web S

[PHP-WIN] COM with ISS and PHP

2001-08-01 Thread Holm Puder
Hi, I try to connect to a COM object. The creation of the objects works fine. The return value isn't NULL. If I call one of the public functions I get always an error message "Warning: Invoke() failed:" The code is like $obj = COM("TestCom.TestCtrl.1"); if ( $obj == NULL ) print .. e

[PHP-WIN] COM and Messenger

2001-07-30 Thread Jonathan Marriott
Has anyone tried using COM with MSN Messenger. I want to retreive the contacts list and add a contact. Jon

[PHP-WIN] COM object and VARIANT

2001-07-26 Thread news.php.net
I want to use a COM object : 'SGMConnection' No problem if I want to send simple requests like these : $oConnection = com_load ("SGMConnection.Connection"); echo "Version = ".com_propget( $oConnection, "version" ); $sConnect = "driver={SQL Server};server=MTBFAB4;database=Suivi;Truste

[PHP-WIN] COM type mismatch

2001-05-24 Thread G Hughes
Does anyone know the reason for the type mismatch error which often seems to happen when using COM objects? The only piece of info I've seen suggested that a COM object can't be passed as a variable to a second COM object. Is this true, and if it is how might this be worked around. Thanks for an

  1   2   >