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

Export to Excel in production

1 Answer 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 09 Aug 2016, 06:49 PM

I have searched and tried different things for 2 days. I am exporting RadGrid to Excel. Has worked in the past and just quit working in production. Works on my local machine.

<telerik:RadGrid ID="grdCustom" AllowSorting="True" runat="server" GridLines="None" Width="100%"
                        OnExcelMLExportStylesCreated="grdCustom_ExcelMLExportStylesCreated" 
                        OnExcelMLExportRowCreated="grdCustom_ExcelMLExportRowCreated" AutoGenerateColumns="true" Style="overflow: hidden">
                        <MasterTableView UseAllDataFields="true"></MasterTableView>
                    </telerik:RadGrid>

 

When the 'Export to Excel' button is clicked, the following is executed:

        grdCustom.ExportSettings.ExportOnlyData = True
        grdCustom.ExportSettings.OpenInNewWindow = True
        grdCustom.MasterTableView.UseAllDataFields = True

        grdCustom.MasterTableView.ExportToExcel()

Like I mentioned earlier, works on my local machine but not in production environment.

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Aug 2016, 04:39 PM
Hello,

I noticed that you have opened duplicate threads with the same questions. Therefore, I would like to ask you continue your communication in the support tickets, so we can easily track your case and provide more to the point answers for a shorter time.

Regards,
Pavlina
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Susan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or