我想用delphi 控制word
在生成的word 文档中,文章的标题要用粗体,我的代码:
worddocument1.Range.Insertafter('华侨大期末试卷(A\B卷) ');//标题
worddocument1.Range.Font.Bold:=1;//标题字体
worddocument1.Range.InsertAfter(trim(editor.Text));//内容
worddocument1.Range.Font.Bold:=0;//内容字体
为什么显示出来后,只有常规字?标题的字不是预想的