We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Possible bug with Aspose.Words

Hi I’m using Aspose.words, (using .NET 1.1)
I get this error:
Specified argument was out of the range of valid values. Parameter name: DistanceFromText
When Trying to insert this HTML - builder.InsertHtml( html )

test test test
When I make the padding-left 31pt or lower, no error is generated and the word document gets created perfectly. However when it’s any value above 31 (like 31.1) it throws the DistanceText Error.
Thanks for your help.

This message was posted using Aspose.Live 2 Forum

Thanks for your reporting this to us. I managed to reproduce this problem. I have created new issue #4418 in our defect database. Please expect a reply before the next hotfix (within 2-3 weeks). We might just fix it by then or provide more information.
Best regards.

We have released a new version of Aspose.Words that contains a fix for your issue.

Issue # 4418 - “System.ArgumentOutOfRangeException” exception occurs during inserting HTML.

The new version of Aspose.Words is available for download from here.
Best regards.