AccpacReport Object

ACCPAC Common Controls

AccpacReport Object

The AccpacReport object provides methods to generate an ACCPAC report.

Remarks

An object of this class cannot be created directly by applications. It should be obtained from the AccpacSession object's ReportSelect method.

Example

The following Visual Basic code illustrates how to use the methods and properties of the AccpacReport object.
 

Dim Session As AccpacCOMAPI.AccpacSessionSet Session = CreateObject("ACCPAC.AccpacSession")Session.Open "ADMIN", "ADMIN", "SAMLTD", Date, 0, ""

Dim rpt As AccpacCOMAPI.AccpacReport

Set rpt = Session.ReportSelect("CSCURRATES", " ", " ")

rpt.SetParam "FROMCUR", "  "

rpt.SetParam "TOCUR", "ZZZ"

rpt.SetParam "FROMTYPE", "  "

rpt.SetParam "TOTYPE", "ZZ"

rpt.SetParam "FROMDATE", Format(Date, "yyyymmdd")

rpt.SetParam "TODATE", Format(Date, "yyyymmdd")

rpt.PrintDestination = PD_PREVIEW

rpt.PrintReport