Wahid Ur Rehman Posted July 25, 2021 Share Posted July 25, 2021 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 More sharing options...
Administrators Melanie Lisle Posted August 3, 2021 Administrators Share Posted August 3, 2021 Hi, We currently don't support Sage 300 on the Developer Community, but if you post your query on Sage City one of my colleagues will be able to help further. Thanks, Mel Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now