Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted EML files (to MSG Files) are rejected by OfficeToPDF #96

Open
Resurg3nt1 opened this issue Aug 12, 2023 · 1 comment
Open

Comments

@Resurg3nt1
Copy link

Resurg3nt1 commented Aug 12, 2023

I am using Rebex MailConverter to convert to-mime (.msg) emails that are originally formatted as .eml. The reason for this is that OfficeToPDF does not allow for conversion of .eml messages to .msg files despite the fact that Outlook 2010 onwards supports them. I should also be clear that I have manually re-saved the emails after opening them in Outlook to .msg format to test whether the error I am encountering is because of MailConverter messing up the conversion. That is not the case - if I convert any eml file to msg and then try to convert the file to PDF, I receive the following error from OfficeToPDF:

Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
Did not convert

I have tried to kill the outlook process prior to invoking the call to convert the file but to no avail.

Anyone got any ideas on why this is happening? The email opens fine in Outlook, has no glitches whatsoever. I can manually print it to a PDF in Outlook using Print to PDF, and it looks great. However, I do not want the end user to have to do that if it can be avoided because the whole point of this is to automate the conversion and this step.

I am using Office 2021 and its activated, in case that is relevant.

@jaydubal
Copy link

It will work till Office 2019, since then Microsoft has stopped COM / Interop support for Office. Hence this (or any such tool) wont work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants