Hi,
I am using Aspose.Words 6.1.0 for .NET with temporary licence…
I am fetching different files from database like, .doc, .docx, .png, .jpg, .bmp, .txt, etc… files.
So i need to generate a document with whatever the file downloading from database…
Is there any method is available to insert the any type of file into document?
any suggestions regarding this appreciated…
Regards,
Srinu Dhulipalla
Hi
Thanks for your inquiry. In MS Word, you can do that by inserting files as an OLE objects. Unfortunately, Aspose.Words does not provide functionality to insert OLE object into the Word document. You can only extract OLE objects from Word document using Aspose.Words.
However, you can insert
- text (read text txt files and insert this text into the document),
- images (you can use DocumentBuilder.InsertImage method),
- Also you can insert Words documents as described here:
https://docs.aspose.com/words/net/insert-and-append-documents/
https://docs.aspose.com/words/java/insert-and-append-documents/
Hope this could help you.
Best regards.