Sign In  Sign Up Live-Chat

Formatting Issues

Last post 08-06-2008, 8:11 PM by dmitryb. 13 replies.
Sort Posts: Previous Next
  •  06-18-2008, 9:36 AM 131898

    Formatting Issues

    I am having trouble with Aspose.Editor not displaying basic formatting correctly as shown in the original document.  Specifically, bold formatted is applied in a manner different than the original document.  Some sentences use a small font size that is different from the original document.  Lastly, many common styles no work, causing the DLL to throw a KeyNotFoundException. 

    Can you address the following questions:

    1) How do I get the Editor to perform correctly, so that it shows text with bold and font size?

    2) What styles are supported by Aspose.Editor?   What styles are not supported

    Our company owns a license for all Aspose products and we just paid $9000 for a renewed support agreement.  Your responsiveness on these issues is important to us.

     

    Thanks,

    Shaun Tonstad

    shaun.tonstad@lrs.com

    217 793 3800 x1833

     
  •  06-18-2008, 10:34 AM 131921 in reply to 131898

    Re: Formatting Issues

    Hi,
    thanks for your interest in Aspose products!

    Can you please zip and attach the document (or part of the document) and images (use print screen Windows feature) of how it looks like in the editor on your machine and in Microsoft Word on your machine.

    1) I can think of one possible reason which causes different formatting. Either document uses embedded font, or .NET instantiates font different from the font used by Word.

    2) Editor supports character, linked character and paragraph styles, it doesn't support table and list styles yet. If DLL throws exceptions it may be that styles or inheritance links were  damaged when document was opened. This should not happen (even if document has non-standard elements) and I think this is an issue which needs to be fixed. Please send us a document with the style and describe steps to reproduce the error.

    Kind regards,
    Michael

     
  •  06-19-2008, 8:15 AM 132100 in reply to 131921

    Re: Formatting Issues

    Attachment: Present (inaccessible)

    The enclosed document causes this exception:

    [ArgumentNullException: Key cannot be null.
    Parameter name: key]
       System.Collections.Hashtable.ContainsKey(Object key) +2875893
       System.Collections.Hashtable.Contains(Object key) +4
       xf989f31a236ff98c.x3dc7b0e934e9090d.xe1d5d012d2674f05(String x1bd44401d685915c) +25
       xf989f31a236ff98c.x3dc7b0e934e9090d.x6c8494b42e236f7b(xfe2178c1f916f36c x44ecfea61c937b8e) +67
       xf989f31a236ff98c.x3dc7b0e934e9090d..ctor(x37eb83f4e2a8fe56 styles) +96
       x0a300997a0b66409.x738c5c0b76a0e787..ctor(x8556eed81191af11 saveInfo) +84
       xbe829a00a7a86dc3.x4f037d20d40d8390.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2) +279
       x41054355180c027e.xb42b66434846c939.x6210059f049f0d48(Stream xcf18e5243f8d5fd3) +140
       x41054355180c027e.xb42b66434846c939.x0acd3c2012ea2ee8(Stream xcf18e5243f8d5fd3) +31
       Aspose.Editor.Server.EditorControl.StreamToChannel(Stream stream) +5

     
  •  06-19-2008, 8:36 AM 132105 in reply to 132100

    Re: Formatting Issues

    Attachment: Present (inaccessible)

    Here are the styles associated with this document (enclosed as styles.gif).

     

     
  •  06-19-2008, 8:39 AM 132106 in reply to 132105

    Re: Formatting Issues

    Attachment: Present (inaccessible)
    If I remove every single style and apply style "Clear All" the Aspose.Editor control works and does not throw an exception.  Enclosed is a sample document which works (sample2.doc).
     
  •  06-19-2008, 8:43 AM 132109 in reply to 132106

    Re: Formatting Issues

    Attachment: Present (inaccessible)

    I added bold to a sentence and the Aspose.Editor control applies bold to the wrong sentence.  See (original.gif) and (result.gif). 

    original.gif:

     

     

     
  •  06-19-2008, 8:44 AM 132110 in reply to 132109

    Re: Formatting Issues

    Attachment: Present (inaccessible)

    Result.gif.  Notice that a sentence is incorrectly placed in bold.

     
  •  06-19-2008, 8:54 AM 132112 in reply to 132110

    Re: Formatting Issues

    I have also had trouble with sentences being displayed with a small font size not contained in the original document; however, I am unable to recreate this error right now.

    Here are some things to know:

    1) The document is saved as Word 97-2003 format.

    2) After saving the document save run the Aspose mail merge tool.

    3) After running this mail merge we display the document in Aspose.Editor.

    Our experience is that the majority of styles cause the Aspose.Editor control to throw a Key Not Found exception (as shown above).  

     

     
  •  06-19-2008, 10:17 AM 132131 in reply to 132100

    Re: Formatting Issues

    Hi Shaun,

    You wrote:

    "The enclosed document causes this exception:
    [ArgumentNullException: Key cannot be null.
    Parameter name: key]
       System.Collections.Hashtable.ContainsKey(Object key) +2875893
       System.Collections.Hashtable.Contains(Object key) +4
       xf989f31a236ff98c.x3dc7b0e934e9090d.xe1d5d012d2674f05(String x1bd44401d685915c) +25
       xf989f31a236ff98c.x3dc7b0e934e9090d.x6c8494b42e236f7b(xfe2178c1f916f36c x44ecfea61c937b8e) +67
       xf989f31a236ff98c.x3dc7b0e934e9090d..ctor(x37eb83f4e2a8fe56 styles) +96
       x0a300997a0b66409.x738c5c0b76a0e787..ctor(x8556eed81191af11 saveInfo) +84
       xbe829a00a7a86dc3.x4f037d20d40d8390.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2) +279
       x41054355180c027e.xb42b66434846c939.x6210059f049f0d48(Stream xcf18e5243f8d5fd3) +140
       x41054355180c027e.xb42b66434846c939.x0acd3c2012ea2ee8(Stream xcf18e5243f8d5fd3) +31
       Aspose.Editor.Server.EditorControl.StreamToChannel(Stream stream) +5"

    I've managed to load sample.doc you provided without any trouble in the latest version of Aspose.Editor. Here is the screenshot:

    So, if this is what you want, please wait for the next release which is almost at hand (we're going to release a new version till the end of this month).

    As regards the bold formatting I probably misunderstood the steps to reproduce the issue. Can you please clarify the steps?

    You wrote:

    Our company owns a license for all Aspose products and we just paid $9000 for a renewed support agreement.  Your responsiveness on these issues is important to us.

    Please provide your order ID, date and full company name to dmitry.burov@aspose.com


    Dmitry Burov
    Lead Developer, Aspose Auckland Team
     
  •  06-19-2008, 11:00 AM 132139 in reply to 132112

    Re: Formatting Issues

    Hi,
    I've verified that "bold issue" doesn't appear in the new version.

    Also new version opens document and preserves all styles as it should. The only issue I have is that Colibri font is not available and style looks like different, but style properties are all the same.

    Please wait for the next release.

    Kind regards,
    Michael

     
  •  06-23-2008, 8:30 AM 132559 in reply to 132139

    Re: Formatting Issues

    OK -- I sent our PO and order number to the aforementioned email address.
     
  •  08-06-2008, 2:15 PM 138606 in reply to 132131

    Re: Formatting Issues

    Hi Dmitriy,

    I am retrying the same documents using Aspose.Editor.Client version 3.0 and I am still seeing this exception:

    [ArgumentNullException: Key cannot be null.
    Parameter name: key]
       System.Collections.Hashtable.ContainsKey(Object key) +2875893
       System.Collections.Hashtable.Contains(Object key) +4
       xf989f31a236ff98c.x3dc7b0e934e9090d.xe1d5d012d2674f05(String x1bd44401d685915c) +25
       xf989f31a236ff98c.x3dc7b0e934e9090d.x6c8494b42e236f7b(xfe2178c1f916f36c x44ecfea61c937b8e) +67
       xf989f31a236ff98c.x3dc7b0e934e9090d..ctor(x37eb83f4e2a8fe56 styles) +96
       x0a300997a0b66409.x738c5c0b76a0e787..ctor(x8556eed81191af11 saveInfo) +84
       xbe829a00a7a86dc3.x4f037d20d40d8390.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2) +279
       x41054355180c027e.xb42b66434846c939.x6210059f049f0d48(Stream xcf18e5243f8d5fd3) +140
       x41054355180c027e.xb42b66434846c939.x0acd3c2012ea2ee8(Stream xcf18e5243f8d5fd3) +31
       Aspose.Editor.Server.EditorControl.StreamToChannel(Stream stream) +5"

     

    I will include a sample Word document for your testing.

     

     
  •  08-06-2008, 2:44 PM 138608 in reply to 138606

    Re: Formatting Issues

    Attachment: Present (inaccessible)
    Encl. sample.doc
     
  •  08-06-2008, 8:11 PM 138640 in reply to 138606

    Re: Formatting Issues

    Hi Shaun,

    I've already sent you an email with the answer.


    Dmitry Burov
    Lead Developer, Aspose Auckland Team
     
View as RSS news feed in XML