我在这里有一些代码,它将使用PHP在Word文档中创建一个基本表,它创建表并填充它很好,但我真的需要分流表,以便地址(第一个框)表格适合放在窗口的信封里!
$word->ActiveDocument->Tables->Add ( $word->Selection->Range, 1, 3 ); //creates table with 3 columns
$word->Selection->TypeText ( $pretext [0] );
$word->Selection->MoveRight (); //move to next column
$word->Selection->TypeText ( $pretext [1] );
$word->Selection->MoveRight (); //move to next column
$word->Selection->TypeText ( $pretext [2] );
$word->Selection->MoveRight (); //move off the table
任何建议都很棒 - 在网上找到任何体面的文档似乎很难。