vb或vc++中如何插入word的域
我想在vb或vc++中控制word输出复杂的公式,如分数式、平方和开方等,如何编写代码?
[解决办法]
Sub Macro1()
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, _
PreserveFormatting:=False
Selection.TypeText Text:= "EQ 2\F(2,3) "
Selection.Fields.ToggleShowCodes
End Sub
域详细解释
http://tech.sina.com.cn/c/2002-12-23/17133.html
http://www.southcn.com/it/itzt/word/200304221272.htm