Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCReportJob::SetPublishingCredentials[C++]

FPCReportJob.SetPublishingCredentials [Visual Basic]

[C++]

The SetPublishingCredentials method sets the UsePublishingCredentials property and the credentials for publishing reports generated by the report job.

HRESULT SetPublishingCredentials(
  VARIANT_BOOL fUsePublishingCredentials,
  BSTR UserName,
  BSTR Password
);

Parameters

fUsePublishingCredentials
[in] Boolean value that specifies whether credentials will be used in publishing reports generated by the report job.
UserName
[in, optional] String value that specifies the user name that will be included in the credentials for publishing reports. The default is an empty (NULL) string.
Password
[in, optional] String value that specifies the password that will be included in the credentials for publishing reports. The default is an empty (NULL) string.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.
[Visual Basic]

The SetPublishingCredentials method sets the UsePublishingCredentials property and the credentials for publishing reports generated by the report job.

Sub SetPublishingCredentials( _
  ByVal fUsePublishingCredentials As Boolean, _
  [ ByVal UserName As String ], _
  [ ByVal Password As String ] _
)

Parameters

fUsePublishingCredentials
[in] Boolean value that specifies whether credentials will be used in publishing reports generated by the report job.
UserName
[in, optional] String value that specifies the user name that will be included in the credentials for publishing reports. The default is an empty (NULL) string.
Password
[in, optional] String value that specifies the password that will be included in the credentials for publishing reports. The default is an empty (NULL) string.

Return Values

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCReportJob