I've been trying to find where a user's last used printer is stored so that I can clear this usage data (as a few users have an issue where the remembered printer keeps defaulting to the XPS writer, despite us having KB981681 installed & the printer being available; just not defaulted on certain AX forms).
I know this data's somewhere in the Usage Data, which I can browse via AX:
Microsoft Dynamics AX
> Tools
> Development Tools
> Application Objects
> Usage Data
AOT
> System Documentation
> Tables
> SysLastValue
> (right click) > Add-Ins
> Table Browser
Or through SQL:
use AXDB
go
select *
from SysLastValue
where userid in
(
select id
from userinfo
where networkalias in ('userid1','userid2')
)
and elementname like '%print%'
and iskernel = 1
However so far I've not been able to guess which setting holds the last used printer information. Since the value
field is of type image (i.e. a blob) I also can't search based on value.
Any advise on how to find this setting would be helpful.