DBReportSubReport

From DBReport wiki
Jump to: navigation, search

Used to handle subreport info. A report consists in one or more subreports.

 Properties
Columns ColumnsOrder DPI
Id ListBox Name
PageHeight PageLandScape PageMarginBottom
PageMarginLeft PageMarginRight PageMarginTop
PageWidth Parameter RecordSet
SearchHighlightColor Title Units


 Methods
BandAdd BandDel ElementAdd
ElementDel GetBand GetBandFromId
GetBandId GetBandsCount GetElement
GetElementFromId GetElementsCount GetPageWidthWithoutMargins
LoadDataSet ToPixels ToUnits


 Shared Methods
ColorToString StrFormat StringToColor


 Constructors
Constructor(SubReport As DBReportSubReport)

Examples

Create a default subreport:

Dim sRpt As New DBReportSubReport
 
Dim bnd As New DBReportBand
bnd.Name= "Pageheader1"
bnd.Type= Int32(DBReportBand.BandType.PageHeader)
sRpt.BandAdd(bnd)
 
bnd= New DBReportBand
bnd.Name= "Detail"
bnd.Type= Int32(DBReportBand.BandType.Detail)
bnd.Height= 20
sRpt.BandAdd(bnd)
 
bnd= New DBReportBand
bnd.Name= "Pagefooter1"
bnd.Type= Int32(DBReportBand.BandType.PageFooter)
bnd.Height= 58
 
sRpt.BandAdd(bnd)
 
Dim rpt As New DBReport
rpt.SubReportAdd(sRpt)