R
R. Baas
Hello There.
I'm trying to make a template. When a user makes a new document based on
this template, it should automatically determine where this user is in the
Active Directory (using ADSI, to determine the user Initials, Surname and
location. Our OU's have the name of the departement the person is working
for.). This is not really the problem, I know a little ADSI.
I now have a few DocVariable fields which have to be filled with the
information from AD. Herein lies the problem: I can get the data from the AD
tree, but I can't seem to find out how to add the value to the DocVariable. I
do know something about declaring variables to use, so the code can be a lot
smaller, but I can't find the normal way to add the value to the variable.
Can someone please help me with this? Thanks in advance!!
I'm trying to make a template. When a user makes a new document based on
this template, it should automatically determine where this user is in the
Active Directory (using ADSI, to determine the user Initials, Surname and
location. Our OU's have the name of the departement the person is working
for.). This is not really the problem, I know a little ADSI.
I now have a few DocVariable fields which have to be filled with the
information from AD. Herein lies the problem: I can get the data from the AD
tree, but I can't seem to find out how to add the value to the DocVariable. I
do know something about declaring variables to use, so the code can be a lot
smaller, but I can't find the normal way to add the value to the variable.
Can someone please help me with this? Thanks in advance!!