Hello,
I have a Telerik RadGrid in a user control.
When I use the Excel Export, with ExportSettings:
Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.
Parameter name: emSize
When I change the Format to Html it works, but I get the warning that the File Extension is wrong.
Also, when I use the same grid (with Format=Biff) in a ASPX file direcly instead of a user control, it works OK
Can anybody tell me what to do to have the BiffExport work in a user control?
This is the Trace when the error occurs:
Regards,
Frank
I have a Telerik RadGrid in a user control.
When I use the Excel Export, with ExportSettings:
I recieve the following message:<ExportSettings> <Excel Format="Biff" /> </ExportSettings
Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.
Parameter name: emSize
When I change the Format to Html it works, but I get the warning that the File Extension is wrong.
Also, when I use the same grid (with Format=Biff) in a ASPX file direcly instead of a user control, it works OK
Can anybody tell me what to do to have the BiffExport work in a user control?
This is the Trace when the error occurs:
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)<BR> at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)<BR> at System.Drawing.Font..ctor(String familyName, Single emSize)<BR> at Telerik.Web.UI.ExcelBiff.Font.GetData()<BR> at Telerik.Web.UI.ExcelBiff.Workbook.AddFontRecordToList(Font font)<BR> at Telerik.Web.UI.ExcelBiff.StyleHandler.GetFontIndex(Cell cell)<BR> at Telerik.Web.UI.ExcelBiff.StyleHandler.GetXFIndex(Cell cell)<BR> at Telerik.Web.UI.ExcelBiff.Cell.CreateBiffCell()<BR> at Telerik.Web.UI.ExcelBiff.Worksheet.WriteRowBlocksAndCells(Stream stream, Int32 lastRow, UInt32 indexRecOffsetsStart, Int32 firstCol, Int32 lastCol)<BR> at Telerik.Web.UI.ExcelBiff.Worksheet.Write(Stream stream)<BR> at Telerik.Web.UI.ExcelBiff.Workbook.Save(Stream stream)<BR> at Telerik.Web.UI.ExportInfrastructure.XlsBiffRenderer.Render()<BR> at Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderForm(HtmlTextWriter nullWriter, Control form)<BR> at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)<BR> at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)<BR> at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)<BR> at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)<BR> at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)<BR> at Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderPage(HtmlTextWriter nullWriter, Control page)<BR> at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)<BR> at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)<BR> at System.Web.UI.Page.Render(HtmlTextWriter writer)<BR> at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)<BR> at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)<BR> at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)<BR> at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)<BR> at System.Web.UI.Page.Render(HtmlTextWriter writer)<BR> at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)<BR> at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)<BR> at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)<BR> at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)<BR> at System.Web.UI.Page.Render(HtmlTextWriter writer)<BR> at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)<BR> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)<BR> at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<BR>Regards,
Frank