Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: COMException in NetOffice.dll

$
0
0
hello;

i'm trying to learn about using this API, but i'm having unknown exceptions that are not blocking my test application but always showing when running project :
 Dim WordApp As NetOffice.WordApi.Application = New NetOffice.WordApi.Application()
        WordApp.DisplayAlerts = NetOffice.WordApi.Enums.WdAlertLevel.wdAlertsNone
        WordApp.Visible = False


        Dim WordDoc As NetOffice.WordApi.Document = WordApp.Documents.Open("C:\Users\Abinn\Desktop\test.docx")

        WordDoc.Close()
        WordApp.Quit()
        WordApp.Dispose()
Exception levée : 'System.Runtime.InteropServices.COMException' dans NetOffice.dll

my code is too basic what is causing this

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>