透過程式設計檢查 SAP Business One 的安裝


可以使用以下程式碼檢查 SAP Business One 的安裝

Public Function isSapBusinesOneClientInstalled() As Boolean
   Try
      SAP Business One Application
      Dim type As Type = Type.GetTypeFromCLSID(New Guid("632F4591-AA62-4219-8FB6-22BCF5F60088"))
      Dim obj As Object = Activator.CreateInstance(type)
      Marshal.ReleaseComObject(obj)
      Return True
         Catch ex As COMException
      Return False
   End Try
End Function

更新於:30-07-2019

171 次瀏覽

開啟你的 職業

透過完成課程獲得認證

開始學習
廣告
© . All rights reserved.