Dear Support Team
Our software system generate reports on a business server.
A web server shows the reports (within a report book) on a web page.
The generated reports are serialized/deserialized and transferred from the business to the web server by a WCF streaming contract.
Problem:
The style sheets are not applied if the report is opened in the html viewer, the same after exporting to PDF or RTF.
I made a simple test by opening the same report locally on the web server without serialization and it shows the styled elements correctly.
Here is the code that deserializes the report document on the web server:
The serialized xml document 'dataFile' (that the web server gets from the business server) from the code above includes the style sheet correctly.
I compared the serialized file on the business server and the transferred one on the web server and they are identical.
Because of that it seems to be a problem on the report viewer or my de-serialization code (that I copied from the reporting online help).
Thank you for your help.
Our software system generate reports on a business server.
A web server shows the reports (within a report book) on a web page.
The generated reports are serialized/deserialized and transferred from the business to the web server by a WCF streaming contract.
Problem:
The style sheets are not applied if the report is opened in the html viewer, the same after exporting to PDF or RTF.
I made a simple test by opening the same report locally on the web server without serialization and it shows the styled elements correctly.
Here is the code that deserializes the report document on the web server:
IReportDocument document = null;
using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(dataFile))
{
System.Xml.Serialization.XmlSerializer xmlSerializer =
new System.Xml.Serialization.XmlSerializer(typeof(Telerik.Reporting.ReportBook));
document = (Telerik.Reporting.ReportBook)xmlSerializer.Deserialize(xmlReader);
}
The serialized xml document 'dataFile' (that the web server gets from the business server) from the code above includes the style sheet correctly.
<
StyleSheet
>
<
StyleRule
>
<
Style
BackgroundColor
=
"Transparent"
Color
=
"Black"
VerticalAlign
=
"Middle"
>
<
BorderStyle
Bottom
=
"Solid"
/>
<
BorderColor
Default
=
"DimGray"
/>
<
BorderWidth
Default
=
"1px"
/>
<
Font
Size
=
"11pt"
Style
=
"Bold"
/>
<
Padding
Left
=
"0cm"
/>
</
Style
>
<
Selectors
>
<
StyleSelector
>
<
Type
>ReportItemBase</
Type
>
<
StyleName
>Test</
StyleName
>
</
StyleSelector
>
</
Selectors
>
</
StyleRule
>
</
StyleSheet
>
I compared the serialized file on the business server and the transferred one on the web server and they are identical.
Because of that it seems to be a problem on the report viewer or my de-serialization code (that I copied from the reporting online help).
Thank you for your help.