It appears that if you have a Textblock with a Run in it that it will not print with a PrintDocument in Silverlight 5. Anyone else have this problem or a solution?

<TextBlock TextAlignment="Left"
                           FontFamily="Arial"
                           FontSize="14">
                    <Run Text="{Binding type}"/>
                    <Run Text=" "/>
                    <Run Text="{Binding size}"/>
                    <Run Text=" "/>
                    <Run Text="{Binding grade}"/>
                </TextBlock>
有帮助吗?

解决方案

I have found the same issue. Unfortunately I have not found a solution. My work-around is to rewrite the TextBlock as a series of TextBlocks contained inside a StackPanel with Orientation set to Horizontal.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top