Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Style Colors with DocxFormatProvider

$
0
0
Hello Thomas,

Indeed, this is an issue in the DocxFormatProvider related to  the priority of the different colors, set to the style. In this case, the theme color, which is with higher priority, is not cleared from the style and takes advantage when the document is visualized.

I logged the issue in our bug tracking system and you could subscribe to the related public item in order to receive updates about status changes on it. Your Telerik points are updated as a token of appreciation for this report.

To work around this, you could set the forecolor of the style in the code-behind:
StyleDefinition style = this.radRichTextBox.Document.StyleRepository["Heading1"];
style.SpanProperties.ForeColor = Colors.Red;
 
StyleDefinition styleChar = this.radRichTextBox.Document.StyleRepository["Heading1Char"];
styleChar.SpanProperties.ForeColor = Colors.Red;

Hope this helps.

Regards,
Tanya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>