align right not working

4 posts, 0 answers
  1. Cristiano
    Cristiano avatar
    13 posts
    Member since:
    Feb 2012

    Posted 11 Mar 2015 Link to this post

    Greetings.

    In our web application we implemented the Telerik RadEditor.
    Now we have a problem exporting a document to word.

    When we export the document,  the text aligned to the right, keeps normal (from left to right).
    However if we align the text with spaces to the right, the format keeps well.

    Any idea what might be going on for right alignment not working? Don't know if it helps, put left align and center align are working and are well exported.

    Regards.
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 13 Mar 2015 Link to this post

    Hello Cristiano,

    I tried to reproduce the described issue, but to no avail. I used this demo (http://demos.telerik.com/aspnet-ajax/editor/examples/import-export/docx-import-export/defaultcs.aspx),  and exporting right-aligned content work fine on my end.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Cristiano
    Cristiano avatar
    13 posts
    Member since:
    Feb 2012

    Posted 13 Mar 2015 Link to this post

    Greetings, 

    Thanks for your reply.
    Maybe it's better if I explain all the scenario.
    What I'm doing it's, converting the RadFlowDocument to a byte array with the respective dll, using the DocxFormatProvider.
    After that, what I'm trying to do is to import this document in the WPF RadEditor using the WPF DLLs version.
    I actually was succeeded with this process, and i could import the document to the WPF editor, the only problem I had is that I lost all the right align formatation.
    As I said in the previous post, all other aligns are working exept the right align.  Any ideas?
    Regards.








     
     
     
     

     
     
     
     
  5. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 17 Mar 2015 Link to this post

    Hello Cristiano,

    I am afraid that we are still not able to reproduce the issue. I tested the alignment in the scenario you are describing, but after showing the text in the RadRichTextBox, it is right aligned. I am attaching the project I tested with. Please, take a look in it and let me know if I am missing something.

    In addition, if you are still experiencing issues with this, we will appreciate if you send us the part from the code you are using to generate the document.

    Regards,
    Tanya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top