How to set "Get the information from the Active Directory"

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

How to set "Get the information from the Active Directory"

Post by cew »

Hi there,

I need to set the flag "Get the information from the Active Directory" (Edit -> Preferences -> Identity) by code to be able to get the identity's Name used in stamps set by

Code: Select all

Editor.Inst.Settings["Identity.Name"].v = "My Name";
I tried to set

Code: Select all

Editor.Inst.Settings["Identity.AlwaysUseLoginName"].v = false;
but it does not work.


And yes, I call

Code: Select all

Editor.Inst.FireAppPrefsChanged(PXV_AppPrefsChanges.PXV_AppPrefsChange_Identity);

It seems that the editor himself does not use this flag set by code.
The setting in the editors preferences overwrites the flag.

The version of PDFXChange Edit Core API is 9.0.352.0

How can I set this flag?
Or has the name of the flag changed?


Best regards
cew
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to set "Get the information from the Active Directory"

Post by Sasha - Tracker Dev Team »

Hello cew,

Have you tried this sample?
viewtopic.php?f=66&t=34683&p=143997&hil ... me#p143973

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to set "Get the information from the Active Directory"

Post by Sasha - Tracker Dev Team »

Hello cew,

Also, to enable that setting use the

Code: Select all

Editor.Inst.Settings["Identity.GetFromAD"].v = true;
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: How to set "Get the information from the Active Directory"

Post by cew »

Sasha - Tracker Dev Team wrote: Wed Jun 30, 2021 2:26 pm
Also, to enable that setting use the

Code: Select all

Editor.Inst.Settings["Identity.GetFromAD"].v = true;
Hi Alex,

got it to work, thank you very much!


Btw: Where do I find a documentation about the available settings and the keys like "Identity.GetFromAD"?


Regards
cew
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to set "Get the information from the Active Directory"

Post by Sasha - Tracker Dev Team »

Hello cew,

There is no documentation available for these. Basically to check the needed flag, open the registry of the End-User Editor:
Computer\HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings
Then, when changing some settings and closing the Editor, you will see the changes made to the registry in the correspondent group. I'm afraid that is the only way.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: How to set "Get the information from the Active Directory"

Post by cew »

Hello Alex,
Sasha - Tracker Dev Team wrote: Fri Jul 02, 2021 8:27 am There is no documentation available for these. Basically to check the needed flag, open the registry of the End-User Editor:
Computer\HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings
Then, when changing some settings and closing the Editor, you will see the changes made to the registry in the correspondent group.
Seriously? :roll:
Sasha - Tracker Dev Team wrote: Fri Jul 02, 2021 8:27 am I'm afraid that is the only way.
Me too :|

Nonetheless, this approach is better than no way to get to the settings at all.
Thank you!

Best regards
cew
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17768
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

How to set "Get the information from the Active Directory"

Post by Tracker Supp-Stefan »

:)
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: How to set "Get the information from the Active Directory"

Post by cew »

Sasha - Tracker Dev Team wrote: Fri Jul 02, 2021 8:27 am Then, when changing some settings and closing the Editor, you will see the changes made to the registry in the correspondent group.
Now I understand what "Tracker" in Tracker-Software stands for:
It's "Registry-Tracker" :lol: :lol: :lol:

Best regards :wink:
cew
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

How to set "Get the information from the Active Directory"

Post by Sasha - Tracker Dev Team »

:D
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply