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

HtmlTextBox - Insert New Line - Export to Word

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
arnaud
Top achievements
Rank 1
arnaud asked on 11 Apr 2011, 03:04 PM
Hi,

I'm trying to find a way to display properly a new line (<br />, <p>, whatever ..) to have the same disposition within the 'report preview', 'word export' and 'pdf export'.

Using the 'Insert new line' button I have the following :

'preview' and 'pdf export' (what I would like to have everywhere) : img1.jpg
'word export' : img2.jpg

As you can see, Word export add an extra line compare to the pdf export.

Example using the following HtmlTextBox Value :

<strong>{Fields.raisoc}<br /></strong>{Fields.adresse1}<br />{Fields.cp} {Fields.ville}<br />{Fields.pays}


Thank You
Arnaud

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Apr 2011, 04:18 PM
Hello arnaud,

HTML text in Word is rendered using Word’s own HTML rendering engine. This might produce a result that is slightly different from the output generated in Web browsers or other rendering extensions. Please check out the Design Considerations for Word Rendering help article for more information about the word rendering extension.

Best wishes,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
arnaud
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or