insertHtml ignores hyperlink styles

Last post 02-03-2012, 10:33 AM by tahir.manzoor. 1 replies.
Sort Posts: Previous Next
  •  02-03-2012, 9:21 AM 359204

    insertHtml ignores hyperlink styles Java

    Hello,
    I'm currently evaluating Aspose.Words to export html to word. I'm using insertHtml and I found solutions for most problems either in the docs or in this forum, but now I'm stuck with a very simple one: styles for hyperlinks. I want hyperlinks in word to appear in light blue color and without underline, defined like:
    style="color:#476dc0;text-decoration:none;"
    I tried inline styles, inline css and linked css file, but everything is ignored at the "a" element.
    I finally found a solution by including a "span" in the "a", but this requires changing the html before exporting which is not desirable:

    <a href="http://www.aspose.com"><span style="color:#476dc0;text-decoration:none;">Aspose</span></a>

    Is there any better possibility?
     
  •  02-03-2012, 10:33 AM 359226 in reply to 359204

    Re: insertHtml ignores hyperlink styles

    Hi Jens,

    Thanks for your query. We have already logged the requested issue as new feature request in our issue tracking system. You will be updated via this forum thread once this feature is available. Please use the workaround mentioned by you at the moment.

    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML