Hello Support,
We are using Aspose.Words in our production site. We want to know few details about Node Type and Shapes
For Shape we have the following queries:
- How can we specify a name for a Shape in MS Word?
- How can we use that name of the shape in the code to set text color, background color, fonts etc.
We have got the following sample code far to check the shapes in a document:
Document doc = new Document(@"D:\Test\TestDoc1.doc");
DocumentBuilder documentBuilder = new DocumentBuilder(doc);
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
foreach (Shape shape in shapes)
{
Response.Write(shape.ShapeType.ToString());
}
For Nodes we have the following queries:
- How can we get the HTML elements like Header1, Header2, Image, Paragraph, Text box from word
document and change color, background color, font etc.? - Can we set any Id or Name for a Node? If yes how can we do it in MS Word?
Please let me know all the details.
Thanks,
Somnath