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)