Jump to content

Wahid Ur Rehman

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Wahid Ur Rehman

  1. 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)
×
×
  • Create New...