Welcome to the Sage 300 Support Group on Community Hub! Available 24/7, the Forums are a great place to ask and answer product questions, as well as share tips and tricks with Sage peers, partners, and pros.
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)
Posted By
Wahid Ur Rehman
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");
}
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)