Band Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to



function Band(Index: Integer): IWPReportBand;


Retrieve the interface of one of the bands at the highes level in the template editor (#1). This can be used to change the properties of bands using code. Also see Band.Band() and property BandCount.


This C# example recursively loops through all the bands in the report and prints the names in Editor #2.


private void listband(IWPReportBand band, int d)


 int i;

 int bc = band.BandCount;

 for (i = 0; i < d; i++)

  wpdllInt1.Memo2.TextCursor.InputString("  ",0);


  band.Typ + "  " +  band.Name + "\r",0);

 for (i = 0; i < bc; i++)



private void ListBands_Click(object sender, System.EventArgs e)


 IWPReport Report = wpdllInt1.Report;

 int bc = Report.BandCount;


 for (int i = 0; i < bc; i++)




[idh_iwpreport_band.htm]    Copyright © 2007 by WPCubed GmbH