php-windows Digest 25 Nov 2001 22:05:32 -0000 Issue 871

Topics (messages 10603 through 10605):

Embedded Classes and Sessions
        10603 by: Luigi LF Rosso

Re: Please help with PHP COM problem (using MS Office)
        10604 by: alain samoun
        10605 by: Nicholas Catanchin

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I can register objects just fine with classes UNLESS they're embedded in 
another object, such as $user->address->getStreet();

If I register the user object, the whole thing should get carried through 
right? Wrong. Only user and its fields get through while the embedded object 
(address) does not.

They're both being declared prior to session handling functions.


Any way to fix? Thanks for the read,


Cirrus

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--- End Message ---
--- Begin Message ---
Ha! maybe you make the same mistake of many: PHP is server side only, you
can't expect to see word or excel on the client side...
Alain


-----Original Message-----
From: Nicholas Catanchin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 25, 2001 12:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Please help with PHP COM problem (using MS Office)


Hi!

I can't for the life of me figure out how to make excel or word visible
using COM. What I mean is:

$excel = new COM("Application.Excel");
$excel->visible = true;

does not work for me, no matter what I try!
I am running PHP 4.0.6 CGI alongside Apache 1.3.22 on Windows XP. I have
no trouble pulling the Version and Value settings, ie:

print "Loaded {$excel->Value}, v{$excel->Version}";

yields: Loaded Excel, v10.0

but doing:

print "Visible: {$excel->Visible}";

doesn't show anything (except "Visible:")

All the examples for using COM in PHP (including the example in the PHP
manual) include this command ($excel->visible = 1)... and I can't find
any resources on the net to help me...

I tried doing the same in VBScript and it worked fine (Setting visible
to 1)... so I'm really stuck here!

Things I have tried:
1) replacing true with: 1, "1", "true"
2) using $excel->application->visible = true (and others from 1)
3) installing Excel 2000 over Excel XP (2002) (as all the examples used
this...) and using $excel = new COM("Application.Excel.9")

In summary: I can do pretty much anything else using COM that I have
gotten examples for on the internet... I used Alain Samoun's EXCEL PHP
class without a problem (except that the bloody excel window won't
show!!)... and I can create word documents and insert data into them and
save them, but I never actually see the Word window.

Any help GREATLY appreciated, as I have been working on this for 2 days
and I can't find a solution. Thanks in advance,

Nicholas Catanchin.


--- End Message ---
--- Begin Message ---
> Ha! maybe you make the same mistake of many: PHP is server side only,
you
> can't expect to see word or excel on the client side...
> Alain

Why, then, do all the PHP examples using COM that I've seen (including
yours at http://www.phpbuilder.com/columns/alain20001003.php3?page=2)
include the "Visible = 1" command? Does it actually do anything?
How _can_ I make the window visible then? I am running the servers on
the same computer I am writing this message from, so I am on the server
side...? if that changes anything?

Please help.



--- End Message ---

Reply via email to