Connecting to an XSD file as a Data Source
When you create an RPT template file, you must connect to the XSD file as the data source for the report.
- Create an XSD file and place it in C:\Inetpub\wwwroot\FsWebReports\Source.
-
Create a blank report and connect to the XSD file. The file path directory
varies because the XSD file can be located anywhere.
A report with multiple objects requires that the ADO.NET connect to FsWebReportTemplate.xsd.
Each of the Object .xsd files must be listed in the FsWebReportTemplate.xml.
-
In this example, FsWebReportTemplate.xsd is the schema for
the report and the schema files for the Optiva objects are
Formula.xsd and Specification.xsd.
This example of FsWebReportTemplate.xml uses data from the Formula and the Specification. When connecting to the ADO, select FsWebReportTemplate.XSD, Formula.XSD, and Specification.XSD.
- Add tables to the report.
- If you add more than one table, you can view and rearrange the order of the tables, if necessary.
- Change links by selecting the link and choosing Reverse Link from the shortcut menu.
-
Now object data is available for the report. Expand a table to select any
fields for the report.
Data types specified in the XSD must be available when the report is run.