word-interop

C# Word Interop - Open a .pdf without the conversion prompt

痞子三分冷 提交于 2021-01-27 20:59:30
问题 I am using the Word Interop and wish to open a .pdf file and let word automatically do the conversion. I have the following properties set. var wordApp = new Word.Application(); wordApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone; wordApp.Options.DoNotPromptForConvert = true; wordApp.Options.ConfirmConversions = false; var doc = wordApp.Documents.OpenNoRepairDialog(ExternalFilePath, false, true); However when it does the Open I still get the following prompt: Word version 2016. Does anyone

ASP .NET / VB .net Using Microsoft Interop Word - CreateObject(“Word.Application”) Crash

我是研究僧i 提交于 2020-01-16 09:14:09
问题 I'm just trying to fill a word dot file (using bookmark) with my asp net vb net webform site using Microsoft Interop Word. It works perfectly in debug on my IIS Express, but crash on my Windows Server 2016 / IIS 10. Dim oWord As Word.Application oWord = CreateObject("Word.Application") Server crash with message like this : Cannot create ActiveX component. (original error message : Impossible de créer le composant ActiveX.) I was searching for a fix, but a lot of post about this error are old.

ASP .NET / VB .net Using Microsoft Interop Word - CreateObject(“Word.Application”) Crash

青春壹個敷衍的年華 提交于 2020-01-16 09:13:13
问题 I'm just trying to fill a word dot file (using bookmark) with my asp net vb net webform site using Microsoft Interop Word. It works perfectly in debug on my IIS Express, but crash on my Windows Server 2016 / IIS 10. Dim oWord As Word.Application oWord = CreateObject("Word.Application") Server crash with message like this : Cannot create ActiveX component. (original error message : Impossible de créer le composant ActiveX.) I was searching for a fix, but a lot of post about this error are old.