croezen
29th December 2010, 16:22
I have build an maintain session, but now i sometimes want to print a record.
i have created a button in the session and linked the report to the session. but when i try to print, i get the device selection, but then the error "can't read session or object"
choice.user.0:
before.choice:
if not marked then
message("no record marked")
choice.again()
endif
on.choice:
long i
for i = 1 to filled.occ
if not mark.table(i) then
continue
endif
restore.rcd.main(i)
rprt_open()
rprt_send()
rprt_close(1)
endfor
restore.rcd.main(1)
execute(find.data)
i have created a button in the session and linked the report to the session. but when i try to print, i get the device selection, but then the error "can't read session or object"
choice.user.0:
before.choice:
if not marked then
message("no record marked")
choice.again()
endif
on.choice:
long i
for i = 1 to filled.occ
if not mark.table(i) then
continue
endif
restore.rcd.main(i)
rprt_open()
rprt_send()
rprt_close(1)
endfor
restore.rcd.main(1)
execute(find.data)