strings chopped in half using COM objects

From: Date: Thu, 08 Nov 2001 10:35:27 +0000
Subject: strings chopped in half using COM objects
Groups: php.windows 
Request: Send a blank email to php-windows+get-10290@lists.php.net to get a copy of this message
hello, I got a strange behaviour with this simple script: $word=new COM("word.application"); $word->Documents->Add(); $word->Selection->Typetext("this is a test this is a test"); $word->Documents[1]->SaveAs('c:\temp\test_test_test_test_te'); $word->Quit(); the result is: a file named test_te.doc, containg "this is a test" (/one/ time!) both strings (filename and text) come out half the length of the original.. anyone had experienced this? is it a bug? I'm running php 4.0.8-dev, apache 1.3.12, win/office 2000 thanks, --giuse PS: I posted this also on http://www.phpbuilder.com/annotate/message.php3?id=1008094 ________________end_of_mail_________________________ Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com

« previous php.windows (#10290) next »