fori=1toll_colnum
//失掉题目头的名字
ls_value=ls_objtag[i]
ole_object.Selection.TypeText(ls_value)
fork=1tof_cncharnum(ls_value)
ole_object.Selection.TypeBackspace()
next
ole_object.Selection.MoveRight(wdCell)
next
adw.setredraw(false)
ole_object.Selection.MoveLeft(wdCell)
stringcolumn_name
fori=2toll_rownum
forj=1toll_colnum
column_name=ls_objs[j]
ifadw.Describe(column_name+.type)=columnthen
ls_value=adw.Describe("Evaluate(LookupDisplay("+column_name+"),"+string(i-1)+")")
endif
ifadw.Describe(column_name+.type)=computethen
ls_value=adw.Describe("Evaluate("+adw.Describe(column_name+.expression)+","+string(i-1)+")")
endif
ole_object.Selection.MoveRight(wdCell)
ole_object.Selection.TypeText(ls_value)
fork=1tof_cncharnum(ls_value)
ole_object.Selection.TypeBackspace()
next
next
next
adw.setredraw(true)