新規 : 2005 年 12 月 5 日
SQL Server 2005 Reporting Services でカスタム レポート アイテムを配置するには、レポート サーバー構成ファイルを変更し、デザイン時と実行時のコンポーネント アセンブリをレポート デザイナとレポート サーバーの両方に対する適切なアプリケーション フォルダにコピーする必要があります。
カスタム レポート アイテムを配置するには
rsreportdesigner.config ファイルを編集して、デザイナで使用するカスタム レポート アイテムの実行時とデザイン時のコンポーネントを構成します。ReportItemName エントリは CustomReportItemDesigner クラス内で使用される CustomReportItemAttribute 属性と一致する必要があることに注意してください。次に例を示します。
<ReportItems> <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCCustomReportItem,PolygonsCRI"/> </ReportItems> <ReportItemDesigner> <ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" /> </ReportItemDesigner> <ReportItemConverter> <Converter Source="Chart" Target="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsConverter, PolygonsDesigner" /> </ReportItemConverter>rsreportserver.config ファイルを編集して、カスタム レポート アイテムの実行時コンポーネントを登録します。次に例を示します。
<ReportItems> <ReportItem Name="Polygons" Type=" Microsoft.Samples.ReportingServices.PolygonsCCustomReportItem,PolygonsCRI"/> </ReportItems>rsssrvpolicy.config ファイルを編集して、カスタム レポート アイテムに適切な権限を許可する CodeGroup を追加します。次に例を示します。
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants MyCustomReportItem.dll FullTrust permission. "> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin\MyCustomReportItem.dll" /> </CodeGroup>カスタム レポート アイテムの実行時コンポーネント DLL を、\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies ディレクトリと \Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin ディレクトリにコピーします。
カスタム レポート アイテムのデザイン時コンポーネント DLL を \Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies ディレクトリにコピーします。
参照
概念
その他の技術情報
Reporting Services 構成ファイル
カスタム レポート アイテムのサンプル