添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Sage 300
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.
Sage CRM for Sage 300 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)

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");
}

rpt = accpacSession.ReportSelect("OEINV04[" + "ENG1AGSWMInvoiceOECAD2.rpt" + "]", " ", " ");
AccpacCOMAPI.AccpacPrintSetup rptPrintSetup;
rptPrintSetup = accpacSession.GetPrintSetup(" ", " ") ;

This line through

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)