レポートサービスに保存されているレポートを表示するには、MVCアプリケーションを構成する必要があります。アプリケーションにビューページを追加するには、次の手順を実行します。レポートビューアの詳細については、「ComponentOne ReportViewerテンプレートの使用」を参照してください。

| Index.cshtml |
コードのコピー
|
|---|---|
<head>
<title>ComponentOne MVC ReportViewer</title>
@Html.C1().Styles()
@Html.C1().Scripts().FlexViewer()
</head>
<body>
@(Html.C1().ReportViewer().ServiceUrl(@"http://localhost:4615/
FlexReportWebAPI").FilePath(@"FlexCommonTasks.flxr").ReportName(@"Simple List"))
</body>
|
|