IFsrmReportManager::SetOutputDirectory method (fsrmreports.h)

Sets the local directory path where reports are stored.

Syntax

HRESULT SetOutputDirectory(
  [in] FsrmReportGenerationContext context,
  [in] BSTR                        path
);

Parameters

[in] context

The report context (for example, if the report is scheduled or runs on demand). For possible values, see the FsrmReportGenerationContext enumeration.

[in] path

The full path to the local directory where the reports are stored. The path can contain environment variables. The path is limited to 150 characters.

Return value

The method returns the following return values.

Remarks

The reports are stored in the following folders under the given path.

Context Folder
FsrmReportGenerationContext_ScheduledReport Scheduled
FsrmReportGenerationContext_InteractiveReport Interactive
FsrmReportGenerationContext_IncidentReport Incident
 

For example, if path is set to "C:\StorageReports" and context is set to FsrmReportGenerationContext_ScheduledReport, the path for the scheduled reports would be "C:\StorageReports\Scheduled".

The default output directories are:

  • "%systemdrive%\StorageReports\Scheduled"
  • "%systemdrive%\StorageReports\Incident"
  • "%systemdrive%\StorageReports\Interactive"

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header fsrmreports.h (include FsrmReports.h, FsrmTlb.h)
DLL SrmSvc.dll

See also

FsrmReportManager

IFsrmReportManager