How to deploy a custom report item
To deploy a custom report item in Reporting Services, you must modify the report server configuration files and copy the design-time and run-time component assemblies into the appropriate application folders for both Report Designer and the report server.
Deploy a custom report item
Edit the Rsreportdesigner.config file to configure the custom report item run-time and design-time components for use in the designer. The ReportItemName entry must match the CustomReportItemAttribute attribute used in your CustomReportItemDesigner class. For example:
<ReportItems> <ReportItem Name="Polygons" Type="PolygonsCRI.PolygonsCRI,PolygonsCRI"/> </ReportItems> <ReportItemDesigner> <ReportItem Name="Polygons" Type="PolygonsCRI.PolygonsDesigner, PolygonsDesigner" /> </ReportItemDesigner> <ReportItemConverter> <Converter Source="Chart" Target="Polygons" Type="PolygonsCRI.PolygonsConverter, PolygonsDesigner" /> </ReportItemConverter>
Edit the Rsreportserver.config file to register the custom report item run-time component. For example:
<ReportItems> <ReportItem Name="Polygons" Type="PolygonsCRI.PolygonsCRI,PolygonsCRI"/> </ReportItems>
Edit the Rsssrvpolicy.config file to add a CodeGroup that grants the proper permissions to the custom report item. For example:
<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\ MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin\MyCustomReportItem.dll" /> </CodeGroup>
Copy the custom report item run-time component DLL to the
%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies and \Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin
directories.Copy the custom report item design-time component DLL to the
%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies
directory.
Related content
Reporting Services configuration files
Custom report item class libraries
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για