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

Free Support Forum - aspose.com

Export structure details of Word doc using Aspose Words for .Net

Hi. I am trying an idea using your Words for .Net library. My employer has been using hundreds of Word templates to produce various document types for years. We want to replace the templates with a “building block” system using runs, sections, paragraphs, images, etc. I have a basic program for ddoing this now, but I need to convert our existing templates. I have been looking at the sample “Document Explorer” and tring to add a sub that exports the data in the tree. When I get to a “run”, I can’t get the info about the font used.
I’d be very grateful if you could show how to access properties such as these. I need to export all the information about a document into any type of file (I have been using a CSV file) so that it can be reconstructed without the template. Our templates include tables, images, bookmarks, formfields, text boxes and buttons, so I need to be able access any of these objects if found in a template.
Thank you
Steve Wilkes

Thanks for your inquiry. Run has Font property. You can get information about font using this property. Please see the following links for more information.
I hope this could help you. Please let me know if you have any other questions. I will be happy to help you.
Best regards.

Got it working now thanks.
Had to start from scratch doing things a completely different way, but I’m getting the data I need now.