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

Word export - Headings and paragraph numbering/bullets

3 Answers 183 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Guga
Top achievements
Rank 1
Guga asked on 06 Jul 2016, 01:58 AM

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.

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 07 Jul 2016, 11:53 AM
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
1
Guga
Top achievements
Rank 1
answered on 08 Jul 2016, 03:13 AM

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.

0
Katia
Telerik team
answered on 08 Jul 2016, 01:57 PM
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
Tags
General Discussions
Asked by
Guga
Top achievements
Rank 1
Answers by
Katia
Telerik team
Guga
Top achievements
Rank 1
Share this question
or