Aspose.Words and WordProcessingML

Hi, I’m looking at Aspose.Words to see if we can replace our current system where we create documents by defining them in WordML and invoking Word itself to save and print.
So can I be confident that whatever we’re doing currently in WordML we’ll be able to do with the Aspose.Words object model?
For example we use , , , under to specify bullet attributes.
And if there’s a mapping somewhere from WordML to your object model that would be incredibly useful.
Many thanks.
John

Hi
Thanks for your request. Using the classes of the Aspose.Words DOM, you can get detailed programmatic access to document elements and formatting. Please see the following link to learn more about Aspose.Words Document Object Model (DOM) and its relationships.
https://docs.aspose.com/words/net/aspose-words-document-object-model/
Please see the following links to lean how to control what list formatting is applied to a paragraph:
https://reference.aspose.com/words/net/aspose.words.lists/listformat/
https://reference.aspose.com/words/net/aspose.words.lists/listformat/applybulletdefault/
Also using Aspose.Words you can print WordML document directly from code:
https://reference.aspose.com/words/net/aspose.words/document/print/
Best regards,

Hi Andrey,
Many thanks for your reply.
I’m completely convinced that using Aspose.Words is, in principle, the way to go, but I don’t want to spend time on evaluation unless I know that it can do what we currently do with WordML 2003.
For example we define list attributes like this:

From your reply I still don’t know whether I can guarantee that definitions like this will map on to the Aspose.Words DOM without question. If so, I can recommend it to my client with confidence.
Does that make sense?
Many thanks.
John

Hi
Thanks for your inquiry and sorry for delayed answer. As you may know Word formats are not strict formats, i.e. you can achieve the same things using different techniques. In your case you used low level model to build your documents. Aspose.Words has higher level model, so you do not need to aware what is inside documents, you should just check whether the output looks as expected in MS Word.
I cannot guaranty that definition of list will look exactly as you provided, however you can surely build the list that looks exactly as your in MS Word. There are few reasons why list definition can look differently. For instance, when you define list you can omit some elements or attributes. In this case default values will be used.
Hope this information can help you to make a right choice. Please let us know if you need more information, we will be glad to help you.
Best regards,

Hi Alexey,
Thanks for your reply, and I understand what you say. I’m definitely looking for a higher level model since creating documents with WordML in XSL is pretty dreadful; I’ve taken over an application and I want to get rid of WordML as soon as possible!
Actually I did a bit more testing yesterday with bullets and I managed to get them to be exactly as we want, which is great news. Also things like creating text and images using the builder is incredibly easy and again, it’s exactly what we want.
So it’s all looking good, and getting help like this is extremely important too.

I 'm going to recommend that we go ahead with Aspose.Words; should make my life a whole lot easier!

All the best,
John

Hi John,
Thank you for additional information. It is perfect that you managed to achieve what you need with Aspose.Words. Please feel free to ask in case of any issues, we will be glad to help you.
Best regards,