BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

UserGroup Property

Gets the information about which user group this object is running under.

Type

prnUserGroup (read-only)

Remarks

N/A.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

MyUserGroup = oPrinter.UserGroup

If MyUserGroup = PRN_GROUP_ADMINISTRATORS Then
    MsgBox "User group: Administrators"
ElseIf MyUserGroup = PRN_GROUP_POWER_USERS Then
    MsgBox "User group: Power users"
ElseIf MyUserGroup = PRN_GROUP_USERS Then
    MsgBox "User group: Users"
ElseIf MyUserGroup = PRN_GROUP_GUESTS Then
    MsgBox "User group: Guests"
Else
    MsgBox "User group: Unknown"
End If