n_name for i = 2 to ll_rownum for j = 1 to ll_colnum column_name = ls_objs[j] if adw.Describe(column_name + '.type') = 'column' then ls_value = adw.Describe("Evaluate('LookupDisplay("+column_name+")',"+string(i - 1)+")") end if if adw.Describe(column_name + '.type') = 'compute' then ls_value = adw.Describe("Evaluate('" + adw.Describe(column_name + '.expression') + "',"+string(i - 1)+")") end if ole_object.Selection.MoveRight(wdCell) ole_object.Selection.TypeText(ls_value) for k = 1 to f_cncharnum(ls_value) ole_object.Selection.TypeBackspace() next next next adw.setredraw(true)
constant long wdFormatDocument = 0
SetPointer(oldpointer) //保存新建的文档 if messagebox("保存","文档已经成功完成,是否保存?",Question!,YesNo!) = 1 then string docname, named integer value
value = GetFileSaveName("选择文件",docname, named, "DOC","Doc Files (*.DOC), *.DOC")
IF value = 1 THEN ole_object.ActiveDocument.SaveAs(docname, 0,False,"",True,"",False,False,False, False,False) end if
end if //断开OLE连接 Ole_Object.DisConnectObject() Destroy Ole_Object
return 1 end function
上一页 [1] [2] [3] [4] [5]
|