InsertHTML problem with images using style attributes

Last post 08-16-2011, 11:12 AM by AndreyN. 1 replies.
Sort Posts: Previous Next
  •  08-16-2011, 10:48 AM 322578

    InsertHTML problem with images using style attributes

    Hi,

    I posted months ago a similar issue.

    If an image is formated like this:

    <img style="WIDTH: 250px; FLOAT: right; HEIGHT: 227px;"  ...

    and the image is bigger than defined in html the imported picture in word is imported with the original height and width.

    Problem is that aspose words doesn't check style attributes.
    If I change to <img width="200" height=xxx then image is imported well. But if I don't set the height the original height will be used. Then images lokks  very bad.

    So the question:
    Is it so difficult to get styles working?
    You promised style import possibilty the last 2 years. And waht do we have, only support for the old style possibilities like align=right, width ...

    I'm using the actual version of Words, but I think picture resizing was better in older versions (think about only setting width ...)

    Please give me feedback, if I have to "correct" html before rendering with aspose words or there will be support for css like I think you have to give.

    Greetings
    Christian


    Christian Steinmetz
    BITqms: Product manager and head of development
    Germany
     
  •  08-16-2011, 11:12 AM 322584 in reply to 322578

    Re: InsertHTML problem with images using style attributes

    Hello

     

    Thanks for your inquiry. The problem occurs because currently Aspose.Words does not support style attribute on IMG element.

    I will consult with responsible developer and provide you more information.

     

    Best regards,


    Andrey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML