Exception while loading Saved Byte Array (StiMarginsTypeCon)
Posted: Thu Nov 10, 2016 4:11 am
Hello Team,
I have a report generated from the designer . I am saving it as a blob in Silverlight client. Then I am passing that to server (.net)to load that blob into another instance of report, at the time of loading I am getting an exception as below. I tried searching for StiMarginsTypeConverter but have not got any results. we are using
stimulsoft report 2014.3.0.0. Please help!
Silverlight 5.1.50901.0,
var Blob =generatedReport.SaveToByteArray(); // in silverlight
var report = new StiReport(); // in dotNet
report.Load(Blob); // in dotNet
Exception:
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s)
at Stimulsoft.Report.Components.Design.StiMarginsTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Stimulsoft.Base.StiObjectStringConverter.StringToObject(String str, Type type)
at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject2(String str, Type type)
at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject(String str, Type type)
at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Deserialize(Object obj, Stream stream, String application)
at Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream)
at Stimulsoft.Report.StiReport.Load(Stream stream)
at Stimulsoft.Report.StiReport.Load(Byte[] bytes)
I have a report generated from the designer . I am saving it as a blob in Silverlight client. Then I am passing that to server (.net)to load that blob into another instance of report, at the time of loading I am getting an exception as below. I tried searching for StiMarginsTypeConverter but have not got any results. we are using
stimulsoft report 2014.3.0.0. Please help!
Silverlight 5.1.50901.0,
var Blob =generatedReport.SaveToByteArray(); // in silverlight
var report = new StiReport(); // in dotNet
report.Load(Blob); // in dotNet
Exception:
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s)
at Stimulsoft.Report.Components.Design.StiMarginsTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Stimulsoft.Base.StiObjectStringConverter.StringToObject(String str, Type type)
at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject2(String str, Type type)
at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject(String str, Type type)
at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Deserialize(Object obj, Stream stream, String application)
at Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream)
at Stimulsoft.Report.StiReport.Load(Stream stream)
at Stimulsoft.Report.StiReport.Load(Byte[] bytes)