LoginSignup
10
15

More than 5 years have passed since last update.

VisualStudio2017 で MicrosoftReport を使う

Last updated at Posted at 2017-12-07

機能拡張の設定

  • VisualStudio2017で[ツール]→[拡張機能と更新]
  • オンラインで検索「Microsoft Report」を検索
  • 「Microsoft Rdlc Report Designer for Visual Studio」の「ダウンロード」ボタンをクリック
  • VisualStudio2017を閉じる
  • インストールが開始される
  • 完了したらVisualStudio2017を起動

レポートビューアー設定(WindowsFormの例)

  • WindowsFormプロジェクトを作成
  • nuget で「Microsoft.ReportingServices.ReportViewerControl.Winforms」を登録 Install-Package Microsoft.ReportingServices.ReportViewerControl.Winforms -Version 140.1000.523
  • ツールボックスの上のほうを右クリックして「アイテムを選択」をクリック
  • .Net Framework タブの参照ボタンをクリックする
  • ソリューションを保存してるフォルダの、packages\lib\net40 フォルダを開く (例:C:\Projects\ReportViewerTest\WindowsFormsApp1\packages\lib\net40)
  • Microsoft.ReportViewer.WinForms.dll のファイルをダブルクリックする
  • ツールボックスにReportViewerが表示される

レポート作成

  • VisualStudio2017で[プロジェクト]→[新しい項目の追加]
  • 「レポート」または「レポート ウィザード」を選択
  • rdlcファイルが作成される

参考リンク

10
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
15