Page 1 of 2

Exception while loading Saved Byte Array (StiMarginsTypeCon)

Posted: Thu Nov 10, 2016 4:11 am
by shyam.pundkar
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)

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Fri Nov 11, 2016 7:42 am
by Alex K.
Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Sun Nov 13, 2016 11:53 pm
by shyam.pundkar
Hi Aleksey,

The issue is not consistently reproducible.
But based on the stack trace it seems something related to margin and its value is passed as null.
I will still try to create a sample project and comeback to you...

Thanks

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Tue Nov 15, 2016 8:05 am
by HighAley
Hello.

Do you use the same versions of our product for Silverlight and .Net?
There could be changes in the file format.

Thank you.

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Wed Nov 23, 2016 12:51 am
by shyam.pundkar
Ohh good point actually the Server has 2015.3.0.0 version and Client has 2016.1.19.0 version.
Do you think this could be the issue and should i make them same as 2016.1.19.0?

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Wed Nov 23, 2016 2:23 pm
by HighAley
Hello.

Yes, exactly. we are trying to keep compatibility with reports created in old versions of our product.
But we don't guarantee that the reports created in the newer version will be opened by older product.

Thank you.

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Wed Nov 23, 2016 8:31 pm
by shyam.pundkar
Thank you so much HighAley!!! just one more thing to ask for, could please route me to an appropriate link that will take me to .NET Stimulsoft Server Report dlls which are compatible with Silverlight version 2016.1.19.0?

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Thu Nov 24, 2016 9:15 am
by HighAley
Hello.

Sorry, but official builds are available only.
You could find them in the registered user area.
Please, try to send a request to support@stimulsoft.com.

Thank you.

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Mon Nov 28, 2016 4:37 am
by shyam.pundkar
Thanks HighAley!!!

Re: Exception while loading Saved Byte Array (StiMarginsType

Posted: Mon Nov 28, 2016 11:48 am
by HighAley
Hello.

You are welcome.

Thank you.