SaveAsHTML Method of the IFPCReadyReport Interface
The SaveAsHTML method saves a report to the specified folder in HTML format.
C++
Syntax
HRESULT SaveAsHTML(
[in] BSTR bstrDirectory,
[in, optional] BSTR UserName,
[in, optional] BSTR Password
);
Parameters
- bstrDirectory
BSTR specifying the path up to the parent folder that will contain the folder in which the report will be saved. - UserName
BSTR that specifies the user name. The default value is an empty BSTR. - Password
BSTR that specifies the password. The default value is an empty BSTR.
Return Value
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Visual Basic
Syntax
Sub SaveAsHTML( _
ByVal bstrDirectory As String, _
[ ByVal UserName As String ], _
[ ByVal Password As String ] _
)
Parameters
- bstrDirectory
String specifying the path up to the parent folder that will contain the folder in which the report will be saved. - UserName
String that specifies the user name. The default value is an empty string. - Password
String that specifies the password. The default value is an empty string.
Return Value
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, 2008 to July 12, 2008, the full path of the folder where the report will be saved will be D:\Reports\MyReport_(07.10.2008-07.12.2008).
Requirements
| Client | Requires Windows Vista or Windows XP. |
| Server | Requires Windows Server 2008. |
| Version | Requires Forefront Threat Management Gateway (TMG). |
| IDL | Declared in Msfpccom.idl. |
| DLL | Requires Msfpccom.dll. |
See Also
Send comments about this topic to Microsoft
Build date: 1/22/2009