Looking for a way to export formated text

I would like to export text representations of my word documents. (using fixed width fonts)


For example wrapping all text to 80 characters as well as if there is any text that is right aligned inserting the right amount of text to make the formatting look correct.

do you have any suggestions as to how this could be done with your products?

This message was posted using Page2Forum from
Aspose.Words for .NET API Reference - Aspose.Words for .NET and Java

Hi Kevin,

The IDocumentVisitor interface might be just what you’re looking for. It should provide a simple way for you to achieve what you want from the document. Check out this example here which shows a .doc file being converted to a .txt file.

Remember that a .txt file doesn’t actually hold any formatting data so the program you are opening it with, most likely notepad, will need to be set to a fixed width font by default.

If you get stuck don’t hesitate to ask us for help.

Thanks,