自定义异步函数 名为 “统计3”
Dim gw As New GroupTableBuilder("统计3", DataTables("tj"))
gw.Groups.AddDef("rq", DateGroupEnum.None, "日期")
gw.Groups.AddDef("bm", "部门")
gw.Totals.AddDef("sl", "数量")
gw.FromServer = True
gw.Build()
在命令窗口中 执行
Functions.AsyncExecute("统计3")
会报错如下错误
详细错误信息:
Exception has been thrown by the target of an invocation.
Controls created on one thread cannot be parented to a control on a different thread.
改成 Functions.Execute("统计3") 运行正常