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

Determine Reporting Export Format

3 Answers 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 03 Feb 2013, 08:13 PM
Is there any way from within the report to determine what report export format is being used.

I'm having an issue where the Column width is calculated wrong when exporting to excel.
Telerik Column Width = 0.85in
Excel Column Width = 0.92in


If I can determine the export is excel within the ItemDataBinding event perhaps I can shrink the columns and textboxes accordingly.


Thanks

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Feb 2013, 03:28 PM
Hello Steven,

I believe the problem you talk about in this thread is the same as in the previous one we've already answered. Please use one of the suggested workarounds, until we figure out a way to address this Excel peculiarity.

Greetings,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Steven
Top achievements
Rank 1
answered on 05 Feb 2013, 03:57 PM
The example provided is just one of the reasons for my question.

My question still remains..  Is it possible to determine what export format is being called from within the report.


When reviewing in the ReportViewer and then selecting Export.  Does it convert the already produced HTML format or does it re-run the report with the different extensions and is there any property available from within the report that indicates what format is being used.

IE, is a new report generated everytime you select an export format or does it re-utilize the databound report instance.
0
Steve
Telerik team
answered on 08 Feb 2013, 01:25 PM
Hello Steven,

To answer your question directly - there is no way to know the export format from within the report. The reporting engine has a common layout engine for all rendering extension and fiddling with the report definition after the report processing has started is not appropriate.

The report is processed once and can be rendered to all formats, so yes it reuses the databound instance.

Regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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