I am using xslt to generate an rdl file. The top level node is the Report
Designer default:
<?xml version="1.0" encoding="utf-8"?>
<Report
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<PageWidth>7.5 in</PageWidth>
<LeftMargin>0.5 in</LeftMargin>
<RightMargin>0.5 in</RightMargin>
<TopMargin>0.5 in</TopMargin>
<BottomMargin>0.3 in</BottomMargin>
<PageHeader>
<Height>1 in</Height>
<ReportItems>
<Textbox Name="Label13">
<Value>PAGE HEADER CONTROL</Value>
</Textbox>
</ReportItems>
</PageHeader>
<Body>
<ReportItems>
<Line Name="BodyLine">
</Line>
</ReportItems>
<Height>1 in</Height>
<Style />
</Body>
<PageFooter>
<Height>0.17 in</Height>
<ReportItems>
<Textbox Name="Label18">
<Value>PAGE FOOTER CONTROL</Value>
</Textbox>
</ReportItems>
</PageFooter>
</Report>
When I import the resulting rdl file into Visual Studio and attempt to
rebuild the project or try to upload the rdl file to my Reporting Services
folder I get the following error:
The report definition is not valid. Details: The element
'http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Report'
has incomplete content. Expected
'http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Description
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Author
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:AutoRefresh
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSources
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSets
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Report
Parameters
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Custom
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Code
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Width
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:PageHeight
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Embedd
edImages
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Language
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:CodeModules
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Classes
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataTr
ansform
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSchema
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataEl
ementName
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataEl
ementStyle'. An error occurred at , (68, 3). (rsInvalidReportDefinition)
None of the expected elements listed are required by the xsd. Any ideas on
what could be causing the error?
Thanks
--Charles
The Report:Width element is mandatory, but is missing from your generated
RDL.
-- Robert

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
>I am using xslt to generate an rdl file. The top level node is the Report
> Designer default:
[quoted text clipped - 67 lines]
> Thanks
> --Charles
Charles Kuntz - 29 Jul 2005 14:36 GMT
Got it. Thanks.
What is the difference between <Width> and <PageWidth>?
--CK
> The Report:Width element is mandatory, but is missing from your generated
> RDL.
[quoted text clipped - 73 lines]
> > Thanks
> > --Charles
Robert Bruckner [MSFT] - 31 Jul 2005 22:10 GMT
PageWidth determines the page width used when exporting with rendering
extensions that work with physical pages (e.g. PDF, TIFF).
Width is the width of the report body (usually determined by the report
design tool). In general, no reportitem's right edge should extend beyond
the report width.
-- Robert

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
> Got it. Thanks.
>
[quoted text clipped - 83 lines]
>> > Thanks
>> > --Charles