Hello!
Im haveing some trouble
Trying to insert data from a POST to a speciell place in a worddokument
using this kod...(from here a think)
<?php
// Some servers may have an auto timeout, so take as long as you want.
set_time_limit(0);
// Show all errors, warnings and notices whilst developing.
error_reporting(E_ALL);
// Used as a placeholder in certain COM functions where no parameter is required.
$empty = new VARIANT();
// Load the appropriate type library.
com_load_typelib('Word.Application');
// Create an object to use.
$word = new COM('word.application') or die('Unable to load Word');
print "Loaded Word, version {$word->Version}\n";
$word->Documents->Open('c:/test.doc');
$word->Selection->TypeText($_POST['test1']);
$word->Selection->TypeText($_POST['test2']);
// Save it, close word and finish.
$word->Documents[1]->SaveAs("C:/{$_POST['test1']}.doc");
$word->Quit();
$word->Release();
$word = null;
print "Word closed.\n";
?>
But it wont work..I know you are suppose to change som settnings...http://www.phpbuilder.com/columns/v...501.php3?page=5
But when i look one my list i dont have IUSR. maybe becuase i have Apache and not IIS..what should i do....must get this to work....
Sry for the bad language