Reports Configuration File Schema

banner art

New custom report types can be added to Microsoft CRM through the reports configuration file. For each new report type, a "viewer" can be defined which specifies the report type's filename extension and a handler which can display a report of the given type.

The schema for the reports configuration file is shown below. A copy of this schema can be found at C:\Inetpub\wwwroot\_Resources\reports.config.xsd for a default Microsoft CRM 3.0 installation. A sample reports configuration file is shown following the schema.

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="viewers"  xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="viewers">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="viewer">
          <xs:complexType>
            <xs:attribute name="extension" type="xs:string"
              use="required"/>
            <xs:attribute name="handler" type="xs:string" use="optional"/>
            <xs:attribute name="name" type="xs:string" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>

Sample Reports Configuration File

<?xml version="1.0" encoding="utf-8" ?>
<viewers>
  <viewer extension="xyz" handler="/Specialviewer.aspx"
    name="Special Report Type"/>
  <viewer extension="abc" name="Client Rendered Report"/>
</viewers>

© 2007 Microsoft Corporation. All rights reserved.