cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
610 stars 137 forks source link

RPC server unavailable #13

Closed yania0 closed 6 years ago

yania0 commented 6 years ago

hi, I use OfficeToPDF

and I found this error : RPC server unavailable (HRESULT: 0x800706BA) location : Microsoft.Office.Interop.Word.ApplicationClass.Quit(Object& SaveChanges, Object& OriginalFormat, Object& RouteDocument)

OS : windows 8.1 Office : MS Office 2013

This error seems to occur when I try to convert a MS Word file to pdf.

Any help? thanks.

vittala commented 6 years ago

Are you running OfficeToPDF directly or as a service (e.g. through a web server)?

Create the folder C:\Windows\SysWOW64\config\systemprofile\Desktop and see if this helps.

Regards Vittal

yania0 commented 6 years ago

I used OfficeToPDF directly on my computer as a command line, not service. I ran the program on the path you taught, but the results were the same as before.

vittala commented 6 years ago

Does this happen if you are converting multiple documents, one after the other? Have you tried using the /noquit switch for officetopdf? Have you performed a repair of your Office installation?

vittala commented 6 years ago

Try this build https://github.com/cognidox/OfficeToPDF/releases/tag/v1.8.7.0

yania0 commented 6 years ago

hi, It works done well. thank you!

vittala commented 6 years ago

OK - thanks for the update