为什么会重复打印??

beyondxuwei beyondxuwei 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
总是重复打同一个,而且都是最后一个数据的内容

代码如下 :
int pid,cid
long job

pid = message.DoubleParm

declare cursor1 cursor for select autoid from preciousstone where pid=:pid ;
open cursor1;

datastore pt_datastore
pt_datastore = create datastore
pt_datastore.dataobject = "d_precious_print_big"
pt_datastore.settransobject(sqlca)

do while sqlca.sqlcode =0
fetch cursor1 into :cid;
job = PrintOpen()
pt_datastore.retrieve(cid)
PrintDataWindow(job, pt_datastore)
loop
close cursor1;
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
beyondxuwei
DataWindow 611 成员 20,469 内容