We are using Aspose.Email in one of our applications. Code tries to save an outlook template file (.oft file) to Pub.msg file.
code is something like
oft file has a text as below
If you have further questions, please call company_name at Phone.
in this company_name and Phone are placeholder texts that will get updated with appropriate values at runtime and then the above save happens. When performing save, the space between “company_name” and “at” disappears.
One thing I could identify is “company_name” and “Phone” are in blue color to identify as placeholders and rest of the text is black. If all the text font color is set to black this issue doesn’t seem to occur.
Please advise on this.
I have observed the issue shared and request you to please try using latest Aspose.Email 20.3 on your end and share source files, generated file and used sample code reproducing issue.
I tried with Latest Aspose.Email 20.3 Dll and the issue seems to be occurring with it as well.
I am attaching the sample code we are using:
- MailCreator.cs is the visual studio C# DLL class code. name space for this is EmailCreator
- MS_Access_Code is the MS Access code in VBA that would reference DLL from the code in step 1 above
- TEST_TEMPLATE.oft is the input Template file
- TEST_TEMPLATE.Pub is the Output file
- bin folder has the DLL and TLB files that got generated from Step 1
Please let me know if any other detail is required.
SPACEISSUE_SAMPLECODE.zip (3.4 MB)
Thank you for sharing the requested information. An issue with ID EMAILNET-39799 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.
Thank You @mudassir.fayyaz. Just one other update is the Aspose.Email version we are using and the one we have license for is 184.108.40.206
Since you have been able to reproduce the issue using latest Aspose.Email for .NE T 20.3, we will fix and resolve the issue on the basis of that.
The issues you have found earlier (filed as EMAILNET-39799) have been fixed in this update.