If you don't want to use Crystal, I had a similar problem with the Check Register and wrote some VBA that formatted a report in Excel. The following snippet imported the AccPac report into Excel:
''' ************************************************************************************
''' Module: basAccPac Project: FPProject
'''
''' Description: Extract report data from AccPac
''' Note: Requires AccPac, ACCACXAPI 1.1, A4wcom.dll
'''
''' Date Developer Action
''' -----------------------------------------------------------------------------------
''' 2/18/2004 Frank Created
'''
''' ***********************************************************************************
Public Session As xapiSession
Public gLoginDB As String
Public gLoginID As String
Public gLoginPW As String
Sub Connect()
'Open a session with the database
On Error Resume Next
Set Session = CreateObject("ACCPAC.xapiSession")
Session.Open gLoginID, gLoginPW, gLoginDB, Date, 0
If Err.Number <> 0 Then
MsgBox "Could not open database", vbCritical, "Error Message"
MsgBox Err.Number & " " & Err.Description, vbCritical
Exit Sub
End If
BuildReport1
Set Session = Nothing
End Sub
Sub BuildReport1()
''' AccPac BK1450 report settings
On Error GoTo ACCPACErrorHandler
Dim rptObj As ACCPACXAPILib.xapiReport
Set rptObj = CreateObject("ACCPAC.xapiReport")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.