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

Built in styles, themes, table formatting, line break, HTML content

3 Answers 203 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Alfred
Top achievements
Rank 1
Alfred asked on 29 Feb 2016, 06:26 AM

How can I use the built in styles? Like:

1. to apply word's color set to whole document

2. to apply word's style set to whole document

3. to apply a specific style like list1 to some sections

4. to apply built in table styles like "Accent 5" to a table

---------------------------

I have a multi-line text box in a web page.  (Actually, I am "forced" to use the text box instead of the Rad Editor... see below.) The content will contain, therefore the line feed.  While I insert the content, the line feed does not change to a line line.  So what can I do?   Now I split them into paragraph and insert but I think there should be a way to do it.

-----------------------------

I use a Rad Editor to capture some content.  If I insert the HTML in the document, the color of some text does not appear in the word.  I found out that the tags does not support in word processing. 

IMHO, either we can find a way in defining how to apply color tags in Rad Editor like font color? Or Telerik may need to test the compatibility between Rad Editor and Word Processing.

It is very strange to me that both are Rad Controls but they are not "communicate" to each other.  Actually when I purchase (recently), I think they shall be communicate to each other in much better way.

IMHO, the following tags must be supported:

. div, span, font color, size, weight

. ul li, ol li

 

Thanks.

Alfred

.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 02 Mar 2016, 09:24 AM
Hello Alfred,

I have tried reproducing the mentioned issue with our online demos (http://demos.telerik.com/aspnet-ajax/editor/examples/import-export/docx-import-export/defaultcs.aspx) but to no avail. After coloring some text in the content it is properly exported to DOCX. Could you please make a test with this demo and then provide the exact content and the steps of reproducing the issue?

Regards,
Danail Vasilev
Telerik
0
Alfred
Top achievements
Rank 1
answered on 07 Mar 2016, 03:15 PM

Dear Danail

 

Thanks.  It works.  Do not know why it does not work previously.  The original code is deleted but I guess I may inherit the style.

May I know how should I use styles? Imagine the following cases:

1. I have defined a standard docx template with my own styles like Heading 1, Heading 2, Table Style 1.  Heading 1 and 2 are outline styles.

2. Insert a Heading 1

3. Insert a Heading 2

4. Insert a HTML paragraph

5. Insert a Table, apply the table styles (eg. I use the Accent 5 style)

Thanks.

Alfred

 

 

 

0
Danail Vasilev
Telerik team
answered on 10 Mar 2016, 11:35 AM
Hi Alfred,

Please examine the following article that treats importing from .DOCX format - http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/import-and-export/import-from-docx-and-rtf#defining-import-settings

Regards,
Danail Vasilev
Telerik
Tags
WordsProcessing
Asked by
Alfred
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Alfred
Top achievements
Rank 1
Share this question
or