Host UI Element in RadFlowDocument?

5 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    16 posts
    Member since:
    May 2014

    Posted 08 Jul 2015 Link to this post

    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

  2. Anna
    Admin
    Anna avatar
    99 posts

    Posted 09 Jul 2015 Link to this post

    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
  3. Ahmed
    Ahmed avatar
    16 posts
    Member since:
    May 2014

    Posted 09 Jul 2015 in reply to Anna Link to this post

    Hi Anna,

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

     

    Thanks,

    Ahmed

  4. Anna
    Admin
    Anna avatar
    99 posts

    Posted 10 Jul 2015 Link to this post

    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
  5. Ahmed
    Ahmed avatar
    16 posts
    Member since:
    May 2014

    Posted 26 Jul 2015 in reply to Anna Link to this post

    Thank you Anna
Back to Top