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

4 posts, 0 answers
  1. alfred
    alfred avatar
    25 posts
    Member since:
    Jan 2008

    Posted 29 Feb Link to this post

    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

    .

     

     

     

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 02 Mar Link to this post

    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
  3. alfred
    alfred avatar
    25 posts
    Member since:
    Jan 2008

    Posted 07 Mar Link to this post

    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

     

     

     

  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 10 Mar Link to this post

    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
Back to Top