Jump to content

System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.


Recommended Posts

Posted

    accpacSession = new AccpacSession();
                accpacSession.Init("", "XY", "XY1000", "67A");
                if (!accpacSession.IsOpened)
                {
                    Console.WriteLine("open");
                    accpacSession.Open("ADMIN", "ADMIN", "SAMINC", DateTime.Today, 0, "");
                }
                if (accpacSession.IsOpened)
                {
                    Console.WriteLine("open");
                }
                
                rpt = accpacSession.ReportSelect("OEINV04[" + "ENG1AGSWMInvoiceOECAD2.rpt" + "]", " ", " ");
                rptPrintSetup = accpacSession.GetPrintSetup(" ", " "); this line throw 

System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at AccpacCOMAPI.IAccpacSession.GetPrintSetup(String menuID, String ProgramID)

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...