Jump to content

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


 Share

Recommended Posts

    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)

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...