Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Folks...

I'm a newbie n hope some1 can help out here..I've a VBA Application (Intranet) which I'd need to check users role and authentication to enable/disable some components.

 

I created a COM Class so that I could expose some properties of the IPrincipal Interface on the .NET framework for the VBA to check the roles...more like implementing....

 

If Me.User.IsInRole("MTN_Grp") Then

....

If My.User.IsAuthenticated = True Then

......

 

The created COM Class builds perfectly...but can't figure out how to implement these on the VBA side or whether some more code is needed...Please check the attachment.

 

Any help will be much appreciated.:confused:

 

Tx

CCW_Authentication_Role_Check.txt

Edited by far2low
Posted

I'm not able to simulate the statements...If Me.User.IsInRole....I pretty much wanna pass the details of the logged-on user through..and provide only the appropriate resources...Don't know how to word the syntax on the COM client...and don't know whether the wrapper created is actually right or need some more work...it's taken me a while to get to this stage..Please let me know what you can think of it..

thx for replying.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...