$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) {
Kil
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.
Visible = 0;
$word->Documents->Add();
$word->Selection->TypeText($string);
$word->Act
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();
$word->Selection->T
3 matches
Mail list logo