AuditReport.ExportReportDefinitionLang method

The ExportReportDefinitionLang method sends a report definition language (RDL) for a specific report type to a file.

Syntax

AuditReport.ExportReportDefinitionLang( _
  ByVal reportName, _
  ByVal exportFolder _
)

Parameters

reportName [in]

A String value that contains the RDL to export to a file. This can be one of the following values.

Report_Health_RequestTypeSummary ()

Lists the number of total, successful, and failed requests for each request type.

Report_Health_RequestTypeDomainSummary ()

Lists the number of total, successful, and failed requests for each domain for a given request type.

Report_Health_RequestTypeDomainUserSummary ()

Lists the number of total, successful, and failed requests for each user in a domain for a given request type.

Report_Health_RequestAvgDuration ()

Lists, for each type of request, the total number of requests received and the average duration that each type took to process.

Report_TroubleShooting_UserRequestSummary ()

Lists the number of total, successful, and failed requests by user and request type.

Report_TroubleShooting_UserRequestTypeList ()

Lists all successful and failed requests by user and request type.

Report_TroubleShooting_UserRequestDetail ()

Lists detailed information for all successful and failed requests by user and request type.

Report_TroubleShooting_UserRequestCertificateInfo ()

Lists detailed certificate information by user and request type.

Report_TroubleShooting_AllEULsFromIssuanceLicense ()

Lists the end user licenses for a selected issuance license.

exportFolder

A String value that contains the export file path.

Return value

This method does not return a value.

Remarks

Microsoft SQL Server supports report definitions that contain data retrieval and layout information for a report. A report definition language (RDL) is an XML representation of the report definition. You can use this method to write the XML for a given report type to a file.

Examples

DIM config_manager
DIM admin_role

' *******************************************************************
' Create and initialize a ConfigurationManager object.

SUB InitObject()

  CALL WScript.Echo( "Create ConfigurationManager object...")
  SET config_manager = CreateObject _
    ("Microsoft.RightsManagementServices.Admin.ConfigurationManager")      
  CheckError()
    
  CALL WScript.Echo( "Initialize...")
  admin_role=config_manager.Initialize(false,"localhost",80,"","","")
  CheckError()

END SUB

' *******************************************************************
' Export a report definition language schema.

SUB ExportRDL()

  DIM auditReport

  ' Create an AuditReport object.
  SET auditReport = _
          config_manager.AuditReport
  CheckError()

  ' Send the RDL schema for the RequestTypeAvgDuration report 
  ' to the c:\ folder.
  CALL auditReport.ExportReportDefinitionLang( _
               "Report_Health_RequestAvgDuration", _
               "c:\")
  CheckError()

END SUB

' *******************************************************************
' Error checking function.

FUNCTION CheckError()
  CheckError = Err.number
  IF Err.number <> 0 THEN
    CALL WScript.Echo( vbTab & "*****Error Number: " _
                       & Err.number _
                       & " Desc:" _
                       & Err.Description _
                       & "*****")
    WScript.StdErr.Write(Err.Description)
    WScript.Quit( Err.number )
  END IF
END FUNCTION

' *******************************************************************
' Generate a runtime error.

SUB RaiseError(errId, desc)
  CALL Err.Raise( errId, "", desc )
  CheckError()
END SUB

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Assembly
Microsoft.RightsManagementServices.Admin.dll

See also

AuditReport