This is a migrated thread and some comments may be shown as answers.

Exports to CSV contain wrong header name

1 Answer 244 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 09 Jun 2015, 03:54 PM

I have a report which I view via a ReportViewer on a web page.  In the viewer, I can choose to export to CVS.  In the resulting CVS file, the headers do not show the names of the header textboxes like I want them to.  Instead, they show the default names that were given to the textboxs when the report was created.

 For instance, initially a header textbox was named "prodOrderDataTextBox" automatically.  In the properties of the textbox, I renamed it to "ProdOrder" and it is this name that I want to appear in the CVS file.

 How can I change this?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 10 Jun 2015, 07:24 AM
Hello Amy,

This behavior of the CSV rendering extension is by design, as described in the Design Considerations for CSV Rendering help article:

"The first record contains headers for all the columns in the report (the items' name, not value)."

You can only remove these names from the exported CSV, as elaborated in the Configuring the CSV Rendering Extension KB article.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ray
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or