Search code examples
silverlighttextblockprintdocument

Textblock Run Printing


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>

Solution

  • 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.