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

Free Support Forum - aspose.com

HTML Table Caption does not work

Hi,
I am trying to generate a Word output from user entered data, and one problem we found out is that when a HTML table has a Caption, it is lost in the MS Word output generated by Aspose.Words.

We are using Aspose.Words version 2.4.2

Please see the following sample code.

public void tableCaptionTest() throws Exception
{
System.out.println(“tableCaptionTest”);
Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

String testHtml = "

The following table has a caption.

";
builder.insertHtml(testHtml);

String tableTest = “”;
tableTest += “<table width=400 border=“1” >”;
tableTest += “Test Data”;
tableTest += “11.”;
tableTest += “1122.”;
tableTest += “112233.”;
tableTest += “11223344.”;
tableTest += “”;
builder.insertHtml(tableTest);


// Save output document
doc.save(“C:/TEMP/test/TableCaptionTest.doc”);
}

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. At the moment, Aspose.Words does not support HTML table captions. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards.

The issues you have found earlier (filed as 15946) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.