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
by kkr653 » Thu Jan 19, 2012 9:55 am
i have run the following code
<?php
// 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
$word->Documents->Add();
//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("anp.doc");
//closing word
$word->Quit();
//free the object
$word = null;
?>
BUT IT SHOWS THE FOLLOWING ERROR
[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[/color]
-
kkr653
- Forum Newbie
-
- Posts: 2
- Joined: Mon Jan 16, 2012 8:50 am
by social_experiment » Tue Jan 24, 2012 5:17 am
First, solve the problem. Then, write the code.
“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
When asking for assistance give as much information about the problem as possible
-

social_experiment
- DevNet Master
-
- Posts: 2688
- Joined: Sun Feb 15, 2009 12:08 pm
- Location: South Africa
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest