dhowells
17th January 2019, 18:42
Has anyone used code to reprint a report from the Device Queue? I have a session where I would like to be able to call back up some errors that were printed earlier. I can determine the correct Queue record. The end users will not have access to the Tools menu.
I found ttaaddlldevice and the repeat_request function. Just playing around with it and hard-coding values it will not work. It sends up a table does not exist error. Tried changing to company zero before the call and no luck.
Anyone used that dll or accomplished this through other means?
Thanks,
Dan
mark_h
18th January 2019, 14:47
Where did you find this dll? I can't find anything like it on our 4c4 system.
bdittmar
18th January 2019, 15:31
Hello,
Library ttaaddlldevice
Interface for Device Management
(8 Functions available)
Function Summary
long
cancel_device_request( domain ttaad.user tuser, domain ttaad.sequ sequencenumber, ref string message.code(), ref domain ttdesc200 message.text mb )
long
change_paper_type( domain ttaad.devc device.name, domain ttaad.tpap paper.type, ref string message.code(), ref domain ttdesc200 message.text mb )
long
change_printer_command_to_down( domain ttaad.devc device.name, ref string message.code(), ref domain ttdesc200 message.text mb )
long
change_printer_command_to_up( domain ttaad.devc device.name, ref string message.code(), ref domain ttdesc200 message.text mb )
long
copy_from_dd( domain ttadv.cpac tpackage, domain ttadv.vers tversion, domain ttadv.rele trelease, domain ttadv.cust tcustomer, domain ttst12 treport.f, domain ttst12 treport.t, domain ttaad.tpap tpapertype, long tfixed.pap, long toverwrite, ref string message.code(), ref domain ttdesc200 message.text mb )
long
device_queue_preserve( domain ttaad.user tuser, domain ttaad.sequ sequencenumber, ref string message.code(), ref domain ttdesc200 message.text mb )
long
repeat_request( domain ttaad.user tuser, domain ttaad.sequ sequencenumber, ref string message.code(), ref domain ttdesc200 message.text mb )
long
update_device_queue( domain ttaad.user tuser, domain ttaad.sequ sequencenumber, string tdate(8), domain tttime ttime, domain ttaad.tpap tpapertype, long tfont, domain ttaad.ncpy tnocopies, domain ttaad.pgno tfpagen, domain ttaad.pgno ttpagen, domain ttaad.delh tdeletedelay, domain ttaad.lmar tleftmargin, domain ttaad.prrt tpriority, long tstatus, ref string message.code(), ref domain ttdesc200 message.text mb )
Regards
dhowells
22nd January 2019, 22:30
I could never get that DLL to work. I ended up doing AFS to solve it.
Dan