template,newtemplate
levariant;
newtemplate:=false;
template:=emptyparam;
WordApplication1.Visible:=True;
WordApplication1.Documents.Add (template,newtemplate);
WordDocument1.ConnectTo(WordApplication1.Documents.Item (itemindex) );
WordApplication1.Selection.Font.Set_Size(18) ;
WordApplication1.Selection.Font.Set_Bold(2);
WordApplication1.Selection.TypeText('附表(一)');
WordApplication1.Selection.TypeParagraph;
WordApplication1.Selection.ParagraphFormat.Set_Alignment(1);
WordApplication1.Selection.Font.Set_Size(12) ;
WordApplication1.Selection.Font.Set_Bold(0);
WordApplication1.Selection.Tables.Add(WordApplication1.Selection.Get_Range,row,16);