I spent the whole day with the Openxml SDK . The task is this: you need to open the file (document template, which is in doc format), change 2-3 lines in it, insert an image (instead of one keyword) and give it to download. Please share implementation options - I will be very grateful.

  • maybe it is worth using standard from Microsoft which is put with office? - tCode
  • Unfortunately not, this is a Web application, there is no installed office on the server. - Fullbalanced
  • Try using Office.interop.Word. In the template itself, mark the right places. ### sign ###, ### picture ###, and then use the search and replace method to change everything you need. Ready to offer an example of working with Excel, it is better suited for this purpose) - Garrus_En
  • interop is not suitable, because there is no installed Office on the server, and it will not work without it - Fullbalanced
  • one
    so I want to use the OpenXML SDK for this purpose - Fullbalanced

0