use MS publisher COM object

From: Date: Wed, 28 Aug 2002 19:06:01 +0000
Subject: use MS publisher COM object
Groups: php.windows 
Request: Send a blank email to php-windows+get-15589@lists.php.net to get a copy of this message
Hello, Does anyone know how I can get the properties (File / Properties) from a Microsoft Publisher file by using it's COM-objects? And I want to save a Microsoft Publisher document as a text-document (.txt) by using it's COM-objects. I only can save it as a rtf-document. I have already got this code working: $instance = new com("publisher.application"); $instance->Open("C:\\xxx.pub"); $instance->ActiveWindow->Visible = 0; $instance->ActiveDocument->SaveAs("C:\\test.txt", 6, 0); // dont work... $instance->ActiveDocument->Close(); $instance->Quit(); $instance->Release(); $instance = null; Thanks!

« previous php.windows (#15589) next »