Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCReadyReport::SaveAsHtml[C++]

FPCReadyReport.SaveAsHtml [Visual Basic]

[C++]

The SaveAsHtml method saves a report to the specified folder in HTML format.

HRESULT SaveAsHtml(
  BSTR bstrDirectory,
  BSTR UserName,
  BSTR Password
);

Parameters

bstrDirectory
[in] BSTR specifying the path up to the parent folder that will contain the folder in which the report will be saved.
UserName
[in, optional] BSTR that specifies the user name. The default value is an empty BSTR.
Password
[in, optional] BSTR that specifies the password. The default value is an empty BSTR.

Return Values

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

Remarks

The name of the folder in which the report will be saved consists of the report name from the Name property, the start date in mm.dd.yyyy format from the StartDate property, and the end date in mm.dd.yyyy format from the EndDate property in the form Name_(mm.dd.yyyy-mm.dd.yyyy). For example, if this property is set to D:\Reports, the name of the report is MyReport, the report covers the period from July 10, 2004 to July 12, 2004, the full path of the folder where the report will be saved will be D:\Reports\MyReport_(07.10.2004-07.12.2004).

[Visual Basic]

The SaveAsHtml method saves a report to the specified folder in HTML format.

Sub SaveAsHtml( _
  ByVal bstrDirectory As String, _
  [ ByVal UserName As String ], _
  [ ByVal Password As String ] _
)

Parameters

bstrDirectory
[in] String specifying the path up to the parent folder that will contain the folder in which the report will be saved.
UserName
[in, optional] String that specifies the user name. The default value is an empty string.
Password
[in, optional] String that specifies the password. The default value is an empty 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.

Remarks

The name of the folder in which the report will be saved consists of the report name from the Name property, the start date in mm.dd.yyyy format from the StartDate property, and the end date in mm.dd.yyyy format from the EndDate property in the form Name_(mm.dd.yyyy-mm.dd.yyyy). For example, if this property is set to D:\Reports, the name of the report is MyReport, the report covers the period from July 10, 2004 to July 12, 2004, the full path of the folder where the report will be saved will be D:\Reports\MyReport_(07.10.2004-07.12.2004).

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

FPCReadyReport