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

Is there ExportCompleted event?

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
taras
Top achievements
Rank 1
taras asked on 24 Feb 2011, 06:47 AM
Unfortunately when exporting to XLS the accurate report layout is not guaranteed. For example row and column spacing can be inconsistent with what you see in the report viewer.

The problem was already reported and Telerik accepted it but nothing could do to address the issue.

Our application handles this problem by running the VBScript for resizing the spreadsheet rows after the exporting. This works reasonable fine if exporting is done programatically (after RenderReport returns):
ReportProcessor reportProcessor = new ReportProcessor();
RenderingResult result = reportProcessor.RenderReport(type, (IReportDocument)report, null);
    
But how to detect export completion and the exported file name if the report was exported by clicking the export button on the ReportViewer toolbar. I cannot find any appropriate event in ReportViewer for this.

Any suggestion would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2011, 04:07 PM
Hi taras,

There are not such events for any of the viewers. If you need to customize them, we recommend hiding the default toolbar and implementing your own UI. You did not mention which viewer you're using and this matters - the web and windows forms viewers have ShowPrintButton property which allows you to hide the Print button, so you can add your own button to handle the print. The Silverlight and WPF viewers are templates which can be edited in Blend to suit your needs.

Best wishes,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
taras
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or