Controlling banded object panels in the exported Excel file

You can control panels of a banded object in the exported Excel file by settings the following three properties:

Notes:

Merging panels in the exported Excel file

You can specify to merge the BandedHeader, BandedPageHeader, GroupHeader, or GroupFooter panel in a banded object into the panel next to it in the exported Excel file. To do this:

  1. Make sure the Columned property of the report that contains the banded object is set to true.
  2. In the Report Inspector, select the node that represents the panel you want to merge.
  3. Set the value of the Merge to Next Panel property to true.
  4. Click File > Export To > Excel.
  5. In the Export to Excel dialog, select Column Format.
  6. Set the other settings according to your requirements and click OK to start exporting.

In the exported Excel file, you can find that the specified panel has been merged to the panel next to it.

Notes:

Example

Suppose there is a standard banded report which displays the fields Customer Name, Annual Sales, and is grouped by Customer_Country and Customer_Region.

Then we set the Columned property of the report to true and Merge to Next Panel of the first GroupHeader panel to true as well, save the report and export it to Excel. We can see that the two group by panels are merged into one and fields in the two panels are put in one cell in the exported Excel file.

In order to improve the layout of the Excel result, now we specify the Column Index and Row Index properties of the objects as follows:

Object Column Index Row Index
A 3 1
B 4 1
C 1 1
D 2 1
E 3 1
F 4 1

Save the report and export it to Excel again. We can see that fields in the Excel file are shown more clearly this time.

Repeating objects in the GroupHeader or BandedPageHeader panel in the Detail panel

If you want to repeat objects in the GroupHeader panel or BandedPageHeader panel in the Detail panel of a banded object in the exported Excel file, follow the steps below:

  1. Make sure the Columned property of the report that contains the banded object is set to true.
  2. In the Report Inspector, select the node that represents the panel you want to repeat.
  3. Set the value of the Repeat in Detail Panel property to true.
  4. Click File > Export To > Excel.
  5. In the Export to Excel dialog, select Column Format.
  6. Set the other settings according to your requirements and click OK to start exporting.

In the exported Excel file, you can find that objects in the specified panel are repeated in the Detail panel.

Notes:

Removing blank row in a panel

The property Remove Blank Row is provided to make the report look compact in the exported Excel file. It applied to BandedPageHeader, GroupHeader, and Detail panels of a banded object.

To remove blank rows in the exported Excel file:

  1. Make sure the Columned property of the report that contains the banded object is set to true.
  2. In the Report Inspector, select the node that represents the panel where blank rows may appear in the Report Inspector.
  3. Set the value of the Remove Blank Row property to true.
  4. Click File > Export To > Excel.
  5. In the Export to Excel dialog, select Column Format.
  6. Set the other settings according to your requirements and click OK to start exporting.

In the exported Excel file, you can find that there will be no blank rows in the specified panel.