IFsrmReportManager::SetOutputDirectory メソッド (fsrmreports.h)

レポートが格納されるローカル ディレクトリ パスを設定します。

構文

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

パラメーター

[in] context

レポート コンテキスト (たとえば、レポートがスケジュールされているか、オンデマンドで実行されている場合)。 使用できる値については、 FsrmReportGenerationContext 列挙を参照してください。

[in] path

レポートが格納されているローカル ディレクトリへの完全パス。 パスには環境変数を含めることができます。 パスは 150 文字に制限されています。

戻り値

メソッドは、次の戻り値を返します。

注釈

レポートは、指定されたパスの下にある次のフォルダーに格納されます。

Context Folder
FsrmReportGenerationContext_ScheduledReport スケジュール済み
FsrmReportGenerationContext_InteractiveReport Interactive
FsrmReportGenerationContext_IncidentReport インシデント
 

たとえば、 path が "C:\StorageReports" に設定され、 コンテキストFsrmReportGenerationContext_ScheduledReportに設定されている場合、スケジュールされたレポートのパスは "C:\StorageReports\Scheduled" になります。

既定の出力ディレクトリは次のとおりです。

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

要件

要件
サポートされている最小のクライアント サポートなし
サポートされている最小のサーバー Windows Server 2008
対象プラットフォーム Windows
ヘッダー fsrmreports.h (FsrmReports.h、FsrmTlb.h を含む)
[DLL] SrmSvc.dll

こちらもご覧ください

FsrmReportManager

IFsrmReportManager