Opeing a PDI file in processbook in .Net

Discussion created by arash.khoddamy on Apr 6, 2009
Latest reply on Apr 7, 2009 by mweiss



I have tried the following but they all give me


“Error Hresult E_Fail has been returned from a call to a COM component.”


pbApplication = CType(application, PBObjLib.Application) 
m_App = pbApplication.Application
pbApplication.ActiveProcBook.Displays.Open(DisplayPath, True)
m_App.Displays.Open(DisplayPath, True)
m_App.Application.Displays.Open(DisplayPath, True)
m_Dis.Application.Displays.Open(DisplayPath, True)
pbApplication.Displays.Open(DisplayPath, True)
m_App.ActiveProcBook.Displays.Open(DisplayPath, True)
pbApplication.ProcBooks.Open(DisplayPath, True


So I ended up using




This works but its not very nice. Can anyone tell me what I am doing wrong?