I using Aspose.word.DocumentVisitor class to retreive text from a word file. Here is the function that is returning me the text:
Public Overrides Function VisitParagraphStart(ByVal paragraph As Aspose.Words.Paragraph) As Aspose.Words.VisitorAction
Using this function I know I can save get the text of paragraph by using paragraph.range.text. But what I want is I want to save it in exact format, for example if the text is Bold and Italic, I want to save it as is.
Can you please give me an example or point me out to a document that shows how to do that ? thanks in advance