Insert document in word file

I am fetching different files from documentum like, .doc, .docx, .png, .jpg, .bmp, .txt, etc… files.

So I need to generate a document with whatever the file downloading from the database.

Is there any method is available to insert any type of file into the document?

I tried the insert method but it’s inserting the file path but not actual document!

any suggestions regarding this appreciated.

@Aminuddin

Please read the supported document formats by Aspose.Words from here:

You can insert supported documents e.g. HTML, TXT, DOC, DOCX into Word document using DocumentBuilder.InsertDocument method. Please read following article about inserting documents into Word document.

To insert images e.g. PNG, JPG, BMP into Word document, please use DocumentBuilder.InsertImage method. Please read article Working with Images.