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

Set Csv Extension Parameters by Code

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 11 Oct 2010, 12:29 PM
Hello everyone.

I am generating a csv file using the RenderReport function. I don't want to display Headers or StaticText and want to turn this off by code. (I'd rather not use the config file). The following code doesn't work. Any Ideas? I am using the evaluation v. 4.1.10.714.

ReportProcessor rp = new ReportProcessor();
            Hashtable deviceInfo = new Hashtable();
            deviceInfo.Add(CsvRenderingExtension.Parameters.NoHeader, true);
            deviceInfo.Add(CsvRenderingExtension.Parameters.NoStaticText, true);
            RenderingResult res = rp.RenderReport(exportFormat.ToUpper(), _report,deviceInfo);

Any hints appreciated, thank you!

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 14 Oct 2010, 03:57 PM
Hi Travis,

We could not reproduce this on our end. I've prepared and attached a sample project that shows the expected result using your code. Review it carefully and let us know if further help is needed.

Best wishes,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Travis
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or