|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-03 10:14 UTC] ab@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: ab
[2014-04-03 10:14 UTC] ab@php.net
[2014-04-29 11:48 UTC] ab@php.net
[2014-04-29 11:48 UTC] ab@php.net
-Status: Assigned
+Status: Closed
[2014-04-29 21:50 UTC] ab@php.net
[2014-04-29 21:54 UTC] ab@php.net
[2014-05-01 14:59 UTC] tyrael@php.net
[2014-10-07 23:15 UTC] stas@php.net
[2014-10-07 23:26 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 00:00:01 2025 UTC |
Description: ------------ We automate MS Word 2003 via PHP (5.4.16) COM DOT NET feature directly. We successfully put Vietnamese text into Word Document but This Word Document containt some special characters. Test script: --------------- com_load_typelib('Word.Application'); $Wrd = new COM("word.application", NULL, CP_UTF8); $Wrd->Application->Visible = 1; $Wrd->Documents->Add(); $DocName = "temp.docx"; $strPath = realpath(basename(getenv($_SERVER["SCRIPT_NAME"]))); $text= "Xin chào cộng đồng PHP"; $Wrd->Selection->TypeText($text); $Wrd->ActiveDocument->SaveAs($strPath."/".$DocName); $Wrd->ActiveDocument->Close(false); $Wrd->Application->Quit(); $Wrd = null; Expected result: ---------------- This is word document content "Xin chào cộng đồng PHP ಧ 殯勋"