4 Replies Latest reply on Sep 5, 2018 7:33 PM by kthuang

    pbobjlib object issue in WIN10 environment

    kthuang

      we have use the following codes in Excel VBA  and  similar codes in VB as well for more than ten years.

      We are using PB2015R2SP1 ane SP2 in both WIN7 and WIN10.

      In Win10 we are getting "Object reference not set  to an instance of an object" when we try to add first display to the PB application object.

      And when we try to close the PB we getting:

      Should we try to setup the pipb dirrerently.

      Thanks,

      KT Huang

       

       

       

      Dim pipb As PBObjLib.Application
      Dim doc As PBObjLib.ProcBook
      Dim disp As PBObjLib.Display
      Dim pdi_file_Nm As String

      Set pipb = CreateObject("piprocessbook.application.2")

      pdi_file_Nm = "Event_evname"
      Set disp = pipb.Displays.Add(pdi_file_Nm)