[PHP] Re: PHP and COM

2002-06-24 Thread BB
$DBCon = new COM(ADODB.Connection); $DBCon-Open('PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=your.mdb'); Function CloseSQL() { global $DBCon; $DBCon-Close(); $DBCon = ; } Function ExecSQL($SQL) { global $DBCon; $rs = @$DBCon-Execute($SQL); if (!$rs) {

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Figured it out. Pulled out the -Close() and had the quit() just override the save. Here's the new function in case anyone cares. function spellcheck($string){ $word = new COM(word.application) or die(Unable to instanciate Word); $word-Visible = 0; $word-Documents-Add();

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Hopefully this is my last reply on this thread. I discovered after opening Word normally after a few dozen tests, that it tried to recover all those lost documents. The following demo script has that fixed. ?php function spellcheck($string){ $word = new COM(word.application) or die(The

[PHP] 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: