This is a continuation of my problem mentioned here:
https://forum.aspose.com/t/33196
The part where the file was not correctly send through Mail has been resolved,
what remains is that Words will mangle the document if a single image is repeated several times.
I’ll repeat the most important comment of the other thread here:
I have created some example files:
- working.docx, when parsed this template will include an image in the email.
- broken.docx, when parsed, not a single image will be seen in the email
- parsed.mhtml, the raw bytes of the parsed template (broken.docx) as it is created by Words and will be loaded in Mail.
- InputDataSet, the dataset that will be loaded by the GetData(true) method.
- Relevant source files involved in parsing.
Notes:
Because of the inclusion of actual production code and data, the zip file is password protected.
(the password is contents of the subject field of this threat)
The file will be removed once I receive a reply.
The process starts at:
ParseWordTemplateOptions - line 121 - internal void SaveDocument
As you can tell ‘parsed.mhtml’ does include two images, but there should be an image on every row, there should be several different ones. When this file is send through Mail, the image placeholders are there.
I hope this information is sufficient.
Please advice on how to tackle this problem.
Greetings Bas.