Hi
I have an an asp.net radgrid using webforms. The Excel export seems to work in debug mode when in visual studio but faisl when in environment. If I debug I can see the items being hit via debug/watch window and all works well. Any idea why it does not work when not in debug mode. Please see below sample code:
<ClientSettings ReorderColumnsOnClient="False" AllowDragToGroup="False" AllowColumnsReorder="False">
<Selecting AllowRowSelect="True" />
</ClientSettings>
<ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true" >
<Excel Format="ExcelML" AutoFitImages="true" />
<Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageBottomMargin="5mm" PageTopMargin="5mm" PageLeftMargin="5mm" PageRightMargin="5mm" />
</ExportSettings>
With GridView1
.ExportSettings.FileName = "ProjectTrackerAt" & Now().ToString("dd-MMM-yy")
.ExportSettings.IgnorePaging = True
.ExportSettings.OpenInNewWindow = True
.HeaderStyle.Font.Bold = True
.ExportSettings.Excel.Format = GridExcelExportFormat.Html
.MasterTableView.ExportToExcel()
End With