Skip to content

Commit 015c0bd

Browse files
github-actions[bot]KB BotIvetNikolovadnikolov-prg
authored
Added new kb article exclude-report-header-csv-export-telerik (#1742)
* Added new kb article exclude-report-header-csv-export-telerik * Update exclude-report-header-csv-export-telerik.md * Add files via upload * Update exclude-report-header-csv-export-telerik.md --------- Co-authored-by: KB Bot <[email protected]> Co-authored-by: IvetNikolova <[email protected]> Co-authored-by: Dimitar Nikolov <[email protected]>
1 parent 2c0f427 commit 015c0bd

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Skipping Report Header Content in CSV Export
3+
description: "Learn how to exclude report header content from the CSV export in Telerik Reporting by using bindings or embedded expressions."
4+
type: how-to
5+
page_title: Excluding Report Header Section Content from CSV Export in Telerik Reporting
6+
meta_title: Excluding Report Header Section Content from CSV Export in Telerik Reporting
7+
slug: exclude-report-header-csv-export-telerik
8+
tags: telerik reporting, csv export, report header, bindings, nostatictext
9+
res_type: kb
10+
ticketid: 1682743
11+
---
12+
13+
## Environment
14+
15+
<table>
16+
<tbody>
17+
<tr>
18+
<td>Product</td>
19+
<td>Progress® Telerik® Reporting</td>
20+
</tr>
21+
<tr>
22+
<td>Rendering Format</td>
23+
<td>CSV</td>
24+
</tr>
25+
</tbody>
26+
</table>
27+
28+
## Description
29+
30+
I want to exclude the dynamic content of the [Report Header/Footer Section]({%slug telerikreporting/designing-reports/report-structure/how-to/how-to-add-remove-report-header---footer-sections%}) from appearing in the CSV export of a report in Telerik Reporting.
31+
32+
Despite using the `NoStaticText = true` [CSV device info setting]({%slug telerikreporting/using-reports-in-applications/export-and-configure/configure-the-export-formats/csv-device-information-settings%}), dynamic content from the report header section still appears in the CSV export.
33+
34+
## Solution
35+
36+
To exclude dynamic content from the `reportHeaderSection` in CSV export, use one of the following methods:
37+
38+
### Method 1: Use Value Bindings
39+
40+
1. Configure the `NoStaticText = true` [CSV device info setting]({%slug telerikreporting/using-reports-in-applications/export-and-configure/configure-the-export-formats/csv-device-information-settings%}).
41+
1. For each `TextBox` in the `reportHeaderSection`, avoid direct expressions in the `Value` property.
42+
1. Instead, use [bindings]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/using-expressions/bindings%}) for the `Value` property. For example:
43+
44+
![Using Value Bindings In Report Header Тo Avoid CSV Export](images/UsingValueBindingsInReportHeader.png)
45+
46+
### Method 2: Use Curly Braces in Expressions
47+
48+
Replace the `=` symbol at the beginning of expressions with curly braces `{}`, or in other words - [embedded expressions]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/using-expressions/embedded-expressions%}). For example: `Hi Mr. {Fields.LastName}, {Fields.FirstName}!`.
49+
50+
## See Also
51+
52+
* [Report Header and Footer Sections - Telerik Reporting]({%slug telerikreporting/designing-reports/report-structure/how-to/how-to-add-remove-report-header---footer-sections%})
53+
* [Configuring the CSV Rendering Extension]({%slug configuring-the-csv-rendering-extension%})
54+
* [Bindings in Telerik Reporting]({%slug telerikreporting/designing-reports/connecting-to-data/expressions/using-expressions/bindings%})
55+
* [Device Information Settings for the CSV rendering format]({%slug telerikreporting/using-reports-in-applications/export-and-configure/configure-the-export-formats/csv-device-information-settings%})
40.4 KB
Loading

0 commit comments

Comments
 (0)