This is a migrated thread and some comments may be shown as answers.

Bolding different parts of a string and writing it to PDF

1 Answer 214 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 06 Aug 2017, 03:28 PM
Hi,

I'm new to telerik products and this is a really simple question that I'm trying to find right now.  I'm currently generating a letter pdf using a method that returns a RadFixedDocument, which is made up of multiple Blocks placed in different positions of a single page using a FixedContentEditor.  Right now I need to convert specific text fragments of the letter string to bold (ones that are wrapped in bold tags) before converting to pdf, but I haven't been able to find a way to separate bold from non-bold text besides using Blocks.  Is there an easier way to do this just with UI for WPF?

Thanks,

Will

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 08 Aug 2017, 04:12 PM
Hello Will,

If I properly understand, you need to bold parts of the text inside the blocks. If so, you can achieve that using the different overloads of the InsertText() method of the Block class. How you can use this method is described in the Block help article.

Hope this is helpful.

Regards,
Tanya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
General Discussions
Asked by
Will
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or