• Print report from C# program error Unknown error 0x80040200

    Hi All, I have an error when trying to print custom report from my C# program. System.Runtime.InteropServices.COMException (0x80004005): Unknown error 0x80040200 at AccpacCOMSVR.AccpacSvrReportClass.PrintReport(Boolean& pWebReportGenerated, String&…
  • Anyone know how to Insert AR Invoice C# ACCPAC.Advantage

    I can insert a customer, i can insert a Vendor, but when i try to insert an invoice into AR, i get object set to null errors lol no matter what i do. I've been doing permutations of the code in hopes of finding WHY the error happens, i tried their RVSpy…
  • Sage 2017 - 64A can't login through C# App.

    Wrote simple app to simulate login into Sage 300 in C# i can query the company names... but when i try to actually use a password and login user it gives me Invalid Signon Information error message, anyone know what i'm doing wrong? session =…
  • CS0120 data to accpac finder in COM API

    Is that possible to add CS0120 data to accpac finder in COM API, after browse the sql statement. mDBLinkCmpRW.OpenView("CS0120", out csQry); sSQL = "Select Name, Description from MYDB.dbo.Table"; csQry.RecordClear(); csQry.Browse(sSQL, true); …
  • Exceptions with Empty Messages

    Note the is a .NET application written in C#. I have an application that imports orders, purchase orders and inventory items into Sage. The customer supplies a file that contains all of the purchase orders w/items. The file is parsed into purchase orders…
  • I have an issue in the .Net library AP Sage300 (Version 2019)

    I have an issue in the .Net library I have no issue creating a vendor using a macro: Dim mDBLinkCmpRW As AccpacCOMAPI.AccpacDBLink Set mDBLinkCmpRW = OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE) Dim mDBLinkSysRW As AccpacCOMAPI.AccpacDBLink Set mDBLinkSysRW…
  • Compose causing problems in .NET application

    The following code is a translation of a VB macro to create a new time card. The issue that I am having is that the Compose statement on line #37 set the view's parent to null. This causes the SetValue on line #49 to fail with a NullReferenceException…
  • Remote .NET API fails at Session Open.

    We have a Sage 300 v16 system. I am trying to use the .NET API to call it from another system. I am running the following code; Session s = new Session(); s.RemoteConnect(Server, User, Domain, Password); s.Init("", "XY", "XY1000", "62A"); s…
  • Sage Accpac.Advantage dll for integration into a custom application.

    Hi, I have written a c# application that uses accpac.advantage to reach out and get various data from the sage 300 views. Currently I have tested this and it works just fine on the Server install machine. The issue I am having is I wondered if this…