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

Export to Excel producing corrupted file

2 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 28 Jun 2013, 06:14 PM
Hi,

I've been working with the RadGrid and exporttoexcel().  Originally, I didn't like the warning about the file format and extensions don't match message so I tried using biff file format instead and got the error attached.
I noticed there was another thread on this issue here.  I ran the code provided and was not able to reproduce the file corruption error.

Any insight as to why I am getting corrupted files would be great,

Thanks,
Ian

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 02 Jul 2013, 01:01 PM
Hi Ian,

I tried to replicate your issue,but no avail.Here is a simple code snippet.Please provide your code for more help and the version you are using.

ASPX:
<telerik:RadGrid ID="Radgrid1" runat="server" AutoGenerateColumns="false" AllowPaging="true"
    DataSourceID="SqlDataSource2">
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" Excel-Format="Biff">
    </ExportSettings>
    <MasterTableView CommandItemDisplay="Top" >
        <CommandItemSettings ShowExportToExcelButton="true" />
. . . . . . . . . . . . . . . . . .
    </MasterTableView>
</telerik:RadGrid>

Thanks,
Princy
0
Kostadin
Telerik team
answered on 03 Jul 2013, 11:10 AM
Hello Ian,

Could you please provide a small runnable sample where the issue could be reproduced in order to investigate the issue further? In the other forum thread the issue remained unresolved, as we are still not able to replicate it on our side.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Ian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or