Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1118
Word compatible?
posted

I'm just starting to use the XamRichTextEditor in WPF projects, and I'm looking and comparing .docx files being imported in your rich text editor versus Word and I'm seeing HUGE differences:

  • Missing images in yours that are OK in Word.
  • Misplaced images. Word is OK
  • Missing page breaks. Word is OK
  • Missing paper size boundaries (e.g. 8.5"x11" paper handling). Word is OK
  • Inconsistencies with images (import once & see them, import a 2nd time and they're missing-- and the same .docx file was imported). Word is OK

For most of what I do, RTF is acceptable since I'm not trying to replace Word. However, when "Word compatible" is added to functionality, there are expectations and that's why I ask: How compatible is it with Word? Any particular version over another for compatibility?

What about HTML? How accurate does it render HTML on import & export? Obviously it's notthatmuch Word compatible when importing .docx files. (see the screen shots)

Are there any specific Infragistic URLs that have an issues list? (can't hurt by asking)

I opened 3 Word docs and all 3 were rendered very incorrectly just using the "Import Content" app in the Samples Browser. Images are attached further illustrating issues:

  1. XamRichTextEditor seems to have no concept of paper size. Compare the Word doc on 8.5"x11"paper: The line wraps are automatic and appropriate. XamRichTextEditor did not perform any line wraps and put the entire paragraph on 1 line. Incorrect importing.
  2. See the lost image. I only captured 1 to illustrate the behavior.
  3. Word has a page break, but it appears as though the XamRichTextEditor does not...
  4. How is printing handled? It is not WYSIWYG

XamRichTextEditor 14.1:

MS Word, Same Document snippet for comparisons illustrating each bullet item above:


Parents
  • 30945
    Offline posted

    Hello,

     

    Thank you for your port. I have been looking into it and the XamRichTextEditor is designed to display the same content as the MS Word in its default Page Layout view. As mentioned here: http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/InfragisticsWPF4.Controls.Editors.XamRichTextEditor.v14.1~Infragistics.Controls.Editors.XamRichTextEditor.html, the XamRichTextEditor is using the Web Layout view. When loading a document in the XamRichTextEditor, its appearance should be similar to appearance of the MS Word document when the Web Layout view is selected. You can web_view.png from the attached zip file, to see how you can turn on the Web Layout view in MS Word.

     

    The page breaks in XamRichTextEditor (and also in the Web Layout view) are represented as an empty space and not a new page. Also the page size in MS Word is not considered when looking in Web Layout view, as it is in the XamRichTextEditor. You can load the attached document in the Samples Browser and also see the attached screenshot word_import.png, which is the appearance that I am getting after loading it, which is expected.

     

    You can submit a new Product Idea for the XamRichTextEditr to support Page Layout view. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.

     

    Steps to create your idea:

                   

    1. Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).

    2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)

    3. Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!

       

      The benefits of submitting the product idea yourself include:

    • Direct communication with our product management team regarding your product idea.

    • Notifications whenever new information regarding your idea becomes available.

       

      Additional benefits of the Product Idea system include:

       

    • Ability to vote on your favorite product ideas to let us know which ones are the most important to you.  You will have ten votes for this and can change which ideas you are voting for at any time.

    • Allow you to shape the future of our products by requesting new controls and products altogether.

    • You and other developers can discuss existing product ideas with members of our Product Management team.

       

      The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

     

    Regarding the images to not appear, I could not managed reproduce it. I have created a MS Word document that has a table with images in it and every time I load the document, all images are appearing.

     

    Would you please provide me with the document that you are loading, in order to be able to test it and research what might be causing this issue?

     

    Looking forward to hearing from you.

     

    Sincerely,

    Krasimir, MCPD

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    screens.zip
Reply Children