Convert of word file(.docx & doc) to .pdf using c# is not working

前端 未结 3 1751
心在旅途
心在旅途 2021-01-03 08:48

I am using visualstudio 2010 and I am trying to convert word.docx file to .pdf file and is working fine in local but on run time on server it is showing error as

<         


        
3条回答
  •  旧时难觅i
    2021-01-03 09:08

    You will need to install the "office.dll" library in the Global Assembly Cache on the server too to make this work. Check out the C:\Windows\assembly folder and you will find office.dll there.

    EDIT: It seems that this will not be as simple as it looks. Some developers mention here that Office would have to be installed on the server or you will need to install even more libraries manually.

提交回复
热议问题