Free Support Forum - aspose.com

ODT - string surrounded by a border not shown

Is it really possible to have a text surrounded by a border in ODT file with Aspose?

I tried the simple example found in the javadoc about Border and I never get the border being showed.

Example:
Inserts a string surrounded by a border into a document.

DocumentBuilder builder = new DocumentBuilder();

builder.getFont().getBorder().setColor(Color.GREEN);
builder.getFont().getBorder().setLineWidth(2.5);
builder.getFont().getBorder().setLineStyle(LineStyle.DASH_DOT_STROKER);

builder.write(“run of text in a green border”);

Even when I try with a Run it’s never shown in odt document.

It works when I save on .doc format, but I really need it working on .odt.

Thanks in advance,
Emerson

@emersonroman,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16855. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-16855) have been fixed in this Aspose.Words for .NET 18.11 update and this Aspose.Words for Java 18.11 update.