DBDilli Babu Nandha Gopal Syncfusion Team November 8, 2018 05:50 AM
Thank you for contacting Syncfusion support.
We have tried to reproduce the reported image rotation problem when executing mail merge with the rotated image in DocIO, but it preserves properly with the actual rotation. For your reference, we have prepared a sample application to execute mail merge with the rotated JPG image and it can be download from the below link:
DBDilli Babu Nandha Gopal Syncfusion Team November 12, 2018 07:36 AM
On further analyzing with the given image, we have found that rotation is applied in the input image itself. Microsoft Word application considered this auto rotation value when inserting image in the Word document. We have found the solution to identify the rotation in the jpg image in .NET Framework platform. We have used the functionality from System.Drawing.Image to identify the rotation which is not available in UWP platform. Currently we are analyzing to identify the image rotation in UWP platform.
At the meantime, could you please provide your confirmation whether you need the solution in .NET Framework or UWP platform? This will be more helpful to provide the solution at the earliest.
THThibaultNovember 12, 2018 08:11 AM
I need the solution for UWP platform and also for Xamarin Windows Forms (this last one in 2019).
THThibaultNovember 12, 2018 08:15 AM
COUld you provide a patch for 184.108.40.206?
DBDilli Babu Nandha Gopal Syncfusion Team November 15, 2018 11:15 AM
Thank you for your patience.
We have prepared a sample based on your requirement which can be downloaded from the following link.
In this sample, we have done the following things: 1. Loads a template Word document using DocIO.
2. Executes mail merge in the document.
3. While executing mail merge for the image field, gets the index of field and paragraph.
4. Iterates to the resultant picture in the mail merged document.
5. Rotate the picture.
6. Saves the Word document.
Please let us know if you have any questions.
THThibaultSeptember 26, 2019 07:34 AM
I was using this solution since you provided the sample.
Now i had to import in my application a 270° rotated jpg file and it seems that it does not work in case of 270° EXIF orientation :
i had to replace the code
picture.Rotation = 270;"
picture.Rotation = 90;"
Why this behaviour?
SBSuriya Balamurugan Syncfusion Team September 27, 2019 08:08 AM
Thank you for your update.
We suspect that the problem might be due to the rotation defined in the image level (internally), which requires 90 degree rotation to fit properly in visual appearance. Could you please share us the image which used at your end. Thereby we will check in depth on your problem and provide you the appropriate solution at the earliest.
If you have any confidential information in your image, you can also mail the files to our Syncfusion support through firstname.lastname@example.org.
Please let us know if you have any other questions.