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
0
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
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
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
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