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

CSV Export

1 Answer 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ymris
Top achievements
Rank 1
Ymris asked on 16 Nov 2011, 11:37 AM
I'm trying to exprt a simple table to csv, reduced the report to column headers and table fields only, but the output is somewhat odd:
- the column headers in csv are the names of the TestBoxes
- the rows contain fields for each fieldname and each value, looks altogether like this:

nameCaptionTextBox,valueCaptionTextBox,nameDataTextBox,valueDataTextBox
Name,Value,WebServiceModule.MpdConfigFilePath,
Name,Value,MaximumThreadCount,120
Name,Value,DeviceModule.QueueMaxAge,02:00:00
Name,Value,SvlDebugModule.Debug,false

thats what I would expect:

Name,Value,
WebServiceModule.MpdConfigFilePath,
MaximumThreadCount,120
DeviceModule.QueueMaxAge,02:00:00
SvlDebugModule.Debug,false

Any ideas what went wrong, or is this by design?


1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Nov 2011, 11:32 AM
Hi Ymris,

Yes, it is by design, as explained 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).
Whether those headers are hidden or not is controlled through the NoHeader device setting. The TextBoxes with static text i.e. labels visibility is controlled through the NoStaticText device setting. For more information, check the CSV Device Information Settings help article. The KB article I pointed you to, hides both, but if you need the static text, then do not set the NoStaticText to true.

Regards,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

Tags
General Discussions
Asked by
Ymris
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or