Export to Text is not working in 2014.3.0.0 version

Stimulsoft Reports.Silverlight discussion
Locked
sachinrmore
Posts: 3
Joined: Wed Feb 18, 2015 8:54 am

Export to Text is not working in 2014.3.0.0 version

Post by sachinrmore »

We have recently upgraded to 2014.3.0.0 version.

The following code is used to export report to text file.
StiSLViewerControl.InvokeReportSaveText();

It has thrown the below error.
Object of type 'System.Windows.Controls.TextBlock' cannot be converted to type 'System.String'.

Before the upgradation to 2014.3.0.0 version, the above code is used to work.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to Text is not working in 2014.3.0.0 version

Post by HighAley »

Hello.

Could you specify which version did you use before?
Could you send us a sample project which reproduces the issue?

Thank you.
sachinrmore
Posts: 3
Joined: Wed Feb 18, 2015 8:54 am

Re: Export to Text is not working in 2014.3.0.0 version

Post by sachinrmore »

Earlier we were using 2014.1.1900.0 version.
Could you please confirm that export to text file is working on 2014.3.0.0 version.

Stack Trace about the error.

{System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException: Set property 'Stimulsoft.Controls.SL.GroupBox.Header' threw an exception. [Line: 23 Position: 70] ---> System.ArgumentException: Object of type 'System.Windows.Controls.TextBlock' cannot be converted to type 'System.String'.
at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at MS.Internal.XamlMemberInfo.SetValue(Object target, Object value)
at MS.Internal.XamlManagedRuntimeRPInvokes.SetValue(XamlTypeToken inType, XamlQualifiedObject& inObj, XamlPropertyToken inProperty, XamlQualifiedObject& inValue)
Last edited by sachinrmore on Mon Mar 02, 2015 6:58 am, edited 1 time in total.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to Text is not working in 2014.3.0.0 version

Post by HighAley »

Hello.

Please, send us a sample project which reproduces the issue.

Thank you.
sachinrmore
Posts: 3
Joined: Wed Feb 18, 2015 8:54 am

Re: Export to Text is not working in 2014.3.0.0 version

Post by sachinrmore »

I have attached the sample application. You can reproduce with it.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export to Text is not working in 2014.3.0.0 version

Post by Alex K. »

Hello,

The issue is fixed. The solution will be available in the next build in this week.

Thank you.
Locked