WordTemplate and ActiveDirectory

Y

YY

How can I create a WordTemplate with something from Activedirectory, such as
Name, Firstname, Tel.Nr...

thanks for help!

YY
 
P

Perry

If y're looking to read user info from AD, y can only pick
up what's stored in the AD database, with regards to user information.

Following link tells y which fields are present in a user account
entry in AD.
http://msdn.microsoft.com/library/d...ry/en-us/netmgmt/netmgmt/user_info_23_str.asp

API function NetUserGetInfo() will return the information
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netusergetinfo.asp

Use Google to get you sample code.

Looks like I've answered this question in another NG...
That didn't happen to be you, does it?

If so, pls don't multipost your question; kindly crosspost if you want yr
question to
reach a broader audience ....

Krgrds,
Perry
 
P

Perry

This was the same question posed in Customization, wasn't it?

Pls don't multipost yr question; better to crosspost
if you want the question to reach a broader audience ...


Here's the response in the other newsgroup:
For example: a word file or a dot-file (letter) with textfield using
Lastname , Firstname and TelNr from AD?
Thanks!

Well, y're new to VBA and to get information from AD
requires some thourough knowledge on VB or VBA coding.

You can use LDAP to retrieve Active Directory information.

Here's a link that will introduce LDAP/ADSI programming.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnactdir/html/BuildingADApps.asp

Read the article and reconsider.

Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top