Word export - Headings and paragraph numbering/bullets

4 posts, 0 answers
  1. Guga
    Guga avatar
    29 posts
    Member since:
    May 2012

    Posted 05 Jul Link to this post

    Hi guys,

    any suggestions on how to achieve the following:

    - When exporting a report to word some of the paragraphs (telerik report text boxes) marked as having Word Styles (Heading 1/2/3...)

    - When exporting a report to word some of the paragraphs (telerik report text boxes) marked as Word Numbering/Bullet.

  2. Katia
    Admin
    Katia avatar
    299 posts

    Posted 07 Jul Link to this post

    Hello Guga,

    Report styling is preserved when exported to Word format according to Design Considerations for Word Rendering(Styling).

    Thus, test applying the required styles to report items at design-time - Using Styles to Customize Reports.

    Lists (numbers/bullets) can be achieved with HtmlTextBox item and <ol> and <ul> elements.


    Regards,
    Katia
    Telerik by Progress
    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. DevCraft banner
  4. Guga
    Guga avatar
    29 posts
    Member since:
    May 2012

    Posted 07 Jul in reply to Katia Link to this post

    Hi Katia,

    Thank you for replying.

    Our issue is not the font format. I understand that I can format the font at report design time and it will be exported with the same font. We need the paragraph to be exported as having the Word Style "Heading 1", "Heading 2", etc as the user needs to add some text manually to the report after it has been exported and want to be able to generate a table of contents after that. By default the table of contents in Word uses the style to identify entries to be added to the table of contents.

    Unfortunately using a single HtmlTextBox is also not a solution for us since there are Telerik Graph and Telerik Table objects between each "list" item.

    Other issues we have encountered:

    I know the literature states that the content is exported as a word table and I understand the principle that is the only way you can guarantee the layout upon exporting. Is there a way to force some of the content to be exported as simple text (not part of a table cell). One of the reasons is that although the text boxes and Html text boxes are marked as "Can Grow" on the report definition the table cells are exported with Height set to Exact instead of minimum. This causes an issue when the user adds text to the exported report, where he has to right-click each cell he has to add text to, go to properties and set the Height type to minimum. Otherwise the text overflow is invisible.

    I am happy to send the output of an exported report so you can get a clearer idea of the issues. Can't post it here for privacy reasons.

     

    Cheers.

  5. Katia
    Admin
    Katia avatar
    299 posts

    Posted 08 Jul Link to this post

    Hi Guga,

    When exported to Word report items cannot be associated with the style rules used internally by MS Word.
    You can test writing your own rendering extension, an example is provided in this forum post.

    You can also test using Document Map, however, it can only be exported in PDF format.


    In case, you need further help please open a support ticket and attach an example of the problematic output and the report definition so we can provide you further suggestions.


    Regards,
    Katia
    Telerik by Progress
    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
Back to Top