error while creating word file

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

error while creating word file

Postby kkr653 » Thu Jan 19, 2012 9:55 am

i have run the following code

// starting word
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";

//bring it to front
$word->Visible = 1;

//open an empty document

//do some weird stuff
$word->Selection->TypeText("This is a test...");

//closing word

//free the object
$word = null;

[color=#FF4040]Loaded Word, version 12.0
Fatal error: Cannot pass parameter 1 by reference in F:\wamp\www\dddddddddd\worddd.php on line 13
Forum Newbie
Posts: 2
Joined: Mon Jan 16, 2012 8:50 am

Re: error while creating word file

Postby social_experiment » Tue Jan 24, 2012 5:17 am

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
DevNet Master
Posts: 2775
Joined: Sun Feb 15, 2009 12:08 pm
Location: .za

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest