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

style not working, while exporting Report progrmatically

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pradeep Toluganti
Top achievements
Rank 1
Pradeep Toluganti asked on 25 Apr 2010, 04:45 PM

I have Create the report and tried to exprot programatially like below, but styles does not seem to be exproted.

TRANS_DELIVERY_REPORT

 

report = new TRANS_DELIVERY_REPORT();

 

Telerik.Reporting.Processing.

ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();

 

Telerik.Reporting.Processing.

RenderingResult result = reportProcessor.RenderReport("XLS", report, null);

 

 

 

FileStream fs = new FileStream("C:\\report1.xls", FileMode.Create);

 

fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);

fs.Flush();

fs.Close();

can any one please let me know what need to be done? thank you.

2 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 26 Apr 2010, 05:25 PM
Hello Pradeep Toluganti,

Please, note that the Excel rendering extension supports only a predefined set of around 75 colors that can be used for Background and Foreground colors of report items. The report item’s colors are translated to the closest possible color from the predefined palette and this might be the reason to suppose that the styles are not working.

You can also check whether the styles are working or not working by exporting the report to another format, e.g. PDF. For more information about the Excel rendering extension, please take a look at the Design Considerations for Excel Rendering help article.


All the best,
Chavdar
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.
0
Steve
Telerik team
answered on 11 Jan 2012, 09:04 AM
Hi Pradeep,

This is just a follow up to let you know that in Q1 2011 we've introduced new export formats based on Office Open XML and one of them is XLSX which does not have the limitation to the color palette as the old BIFF excel format.

All the best,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

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