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

Host UI Element in RadFlowDocument?

4 Answers 78 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 08 Jul 2015, 05:46 PM

Hi,

I'm trying to use RadFlowDocument (2015 Q2) to create summary reports. Before switching to RadFlowDocument, I used to work with normal WPF FlowDocument and I'm able to host UI elements (such as charts) in it. Now, I'm trying to do the same thing with RadFlowdocument, but I can't host a UI element in it.

Is there any way to make RadFlowDocument host a UI element?

 

Thanks,

Ahmed

4 Answers, 1 is accepted

Sort by
0
Anna
Telerik team
answered on 09 Jul 2015, 01:02 PM
Hi Ahmed,

Thank you for your interest in RadWordsProcessing.

While FlowDocument inherits from ContentElement, this is not true of RadFlowDocument, so, unfortunately, you will not be able to host a UI element in it.

Please, keep in mind that RadWordsProcessing is a processing library which is entirely independent of any UI. In view of this I am not entirely sure why you would need to host a UI element in RadFlowDocument as you won't be able to show it and it will be lost upon export to the formats we support. If you'd like, you can tell us a little more about your scenario and we can discuss which part of it can be achieved with RadWordsProcessing.

Regards,
Anna
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
0
Ahmed
Top achievements
Rank 1
answered on 09 Jul 2015, 04:17 PM

Hi Anna,

 I wanna include a chart in the report, that's why I'm trying to add a UI element.

 

Thanks,

Ahmed

0
Anna
Telerik team
answered on 10 Jul 2015, 08:54 AM
Hi Ahmed,

An alternative which I can offer you would be to export the chart to an image and then add it to the RadFlowDocument. Exporting it to an image can be done using our ExportToImage methods. Once you've done that, you can add the image to the RadFlowDocument, following the instructions in this documentation article.

I hope this solution will be suitable for your scenario.

Regards,
Anna
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
0
Ahmed
Top achievements
Rank 1
answered on 26 Jul 2015, 07:18 PM
Thank you Anna
Tags
WordsProcessing
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Anna
Telerik team
Ahmed
Top achievements
Rank 1
Share this question
or