Category / Section
How to Include Spaces in CSV Export Header Names in Bold Reports
Published:
Updated:
When exporting reports to CSV in Bold Reports, column headers are generated based on the textbox names by default. To make these headers more user-friendly, you can customize them by setting the DataElementName
property for each textbox in the detail row.
Steps to Customize CSV Export Headers:
- Open your report file:
Use any text editor or XML editor (such as Visual Studio Code or Notepad++) to open your report file. - Locate the
<Textbox>
in the Detail Row:
Find the<Textbox>
element within the detail row of the table that corresponds to the field you want to customize. - Modify the
DataElementName
Property:
Inside the<Textbox>
element, modify the<DataElementName>
tag with your desired header name (including spaces, if needed).
<Textbox Name="Textbox1">
...
<DataElementName>Product No</DataElementName>
</Textbox>
- Save and Reload the Report:
Save the updated report file and reload it in the Bold Reports Designer. - Export to CSV
When you export the report to CSV, the column header will now use the value specified inDataElementName
(e.g., Product No), instead of the raw field name.
Customizing CSV export headers in Bold Reports enhances the readability and professionalism of your exported data. By using the DataElementName
property in the RDL file, you gain full control over how column headers appear in CSV exports—ensuring they are clear, accurate, and aligned with business requirements.