How to Hide Specific Paper Sizes in Bold Reports Designer
In the Bold Reports Designer, users may need to restrict the available paper sizes. By default, Bold Reports offers several paper sizes including A4, A3, Letter, Legal, B5 (JIS), and others. This article explains how to use the HidePagePaperSizes custom property to hide specific paper sizes.
Steps to Hide Specific Paper Sizes
Step 1: Access Custom Attributes
- Click the gray area outside the report designer canvas to open the Properties panel. Expand the Miscellaneous section and click the Set Attributes button under Custom Attributes.
Step 2: Set Custom Attributes
- In the Custom Attributes dialog, click Add to insert a new row.
- In the Name field, enter:
HidePagePaperSizes. - In the Value field, enter the paper sizes you want to hide, separated by commas (for example,
A3, A4, B5(JIS)). Click OK to save the configuration.
| Attribute Name | Description | Example Value |
|---|---|---|
HidePagePaperSizes |
Controls which paper sizes are hidden in the designer and export options. Values must be comma-separated and must match the supported paper size names in Bold Reports. | A3, A4, B5(JIS) |
This attribute accepts multiple comma-separated values. Ensure that the paper size names match the exact naming conventions used in Bold Reports.
Step 3: Verify the Changes in Preview
- Preview the report.
- Click the Page Setup icon, then open the Paper Size dropdown menu.
- Confirm that the paper sizes specified in Step 2 are no longer displayed.
Before applying the attribute:
After applying the attribute:
Conclusion
Hiding specific paper sizes in the Bold Reports Designer helps standardize report layouts and prevent inconsistencies caused by unsupported page formats. By using the HidePagePaperSizes custom attribute, administrators and report designers can ensure that only approved paper sizes are available, reducing formatting issues and improving consistency during report creation.
Download the sample report here for further reference.