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

Free Support Forum - aspose.com

Using Aspose.Words to convert floating tables/images to inline

Aspose Team,

Is there a way to programmically convert floating tables and images to inline/anchored tables and images using Aspose.words? I have been trying using inline class without success.

Thanks

Hello

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

Thanks for your request. Of course, you can try changing WrapType for all shapes in your document programmatically, but in this case layout of your documents can be changed. Please see the following code:

Document doc = new Document(@"Test\in.doc");

// Get all Shapes

NodeCollection shapesColl = doc.GetChildNodes(NodeType.Shape, true, false);

foreach (Shape shape in shapesColl)

{

shape.WrapType = WrapType.Inline;

}

doc.Save(@"Test104\out.doc");

Regarding floating tables, currently there is no way to specify WrapType for a table using Aspose.Words. Your request has been linked to the appropriate issue. You will be notified as soon as this feature is supported.

Best regards,

The issues you have found earlier (filed as WORDSNET-581) have been fixed in this .NET update and in this Java update.


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