Create Extension for Microsoft Office Accounting

Dot Net team at Maven Infosoft has created many Extensions for Microsoft Office Accounting. Here you will find how to create Microsoft Office Accounting extension.

Create Application Extension for Microsoft Office Accounting:

You can create your own application which can be integrated to your accounting company. You need to follow given steps for creating New Application which can be integrated to MOA.

Assumption: You might have created your company in MSOA and you have to pass company name in step – 9 at the place of “yourCompany.sbc”.

  1. Create Windows based Project.
  2. You have to add references of following DLLS.
    • ILoader: c:WINDOWSassemblyGAC_32ILoader2.0.5201.0__31bf3856ad364e35ILoader.dll
    • SBAIAPI: c:Program FilesMicrosoft Small BusinessSmall Business Accounting 2007AssembliesSBAIAPI.dll
    • SBAIUI: c:Program FilesMicrosoft Small BusinessSmall Business Accounting 2007AssembliesSBAIUI.dll
  3. Now you need to Import two namespace for MOA
      - using Microsoft.BusinessSolutions.SmallBusinessAccounting.UI;
      -using Microsoft.BusinessSolutions.SmallBusinessAccounting;
  4. Provide the Information related to your Loader
      - const string loaderFULLNAME = “Loader, Version=2.0.5201.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″;
  5. Provide the details related to your Assembly
    • const string loaderNAMESPACE = “Microsoft.BusinessSolutions.SmallBusinessAccounting.Loader.Loader”;
  6. Create object for ISmallBusinessInstance.(It is an interface so no needs to create New Instance for this
  7. Load the assembly which was initialized before.
  8. Assembly assem = Assembly.Load(loaderFULLNAME);

  9. Load the assembly which in your system using Loader
  10. ILoader ldr = assem.CreateInstance(loaderNAMESPACE) as ILoader;

  11. Create string object and initialize with .sbc file which is stored in Your MYDocument. You can provide other path also.
    • string sbaFile = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) Path.DirectorySeparatorChar + “Small Business Accounting” Path.DirectorySeparatorChar + “Companies” + Path.DirectorySeparatorChar + “yourCompany.sbc”;
  12. Load the file in your application using loader.
  13. – sbi = ldr.GetSbaObjects(sbaFile).SmallBusinessInstance as ISmallBusinessInstance

  14. Now your sbi object (instance of SmallBusinessInstance) is ready to Use.

Manage customer details using SmallBusinessInstance Object

Now it’s time to implement SmallBusinessInstance object to access the details related to Customers. [sbi is an object of SmallBusinessInstance]

How to view existing customers?

How to create New Customers?

Manage Payment details using SmallBusinessInstance object Now you can implement the Payment module of customer in following ways.

How to Create New Payment for Customers?

Manage Invoice details using SmallBusinessInstance object. You can manage the details of Invoice using the APIs of Microsoft Accounting.

How to View existing Invoice?

How to create New Invoice?

IItemLine line;

invoice.Save();