Page 1 of 1
Export to Text is not working in 2014.3.0.0 version
Posted: Wed Feb 18, 2015 9:22 am
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.
Re: Export to Text is not working in 2014.3.0.0 version
Posted: Thu Feb 19, 2015 10:09 am
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.
Re: Export to Text is not working in 2014.3.0.0 version
Posted: Fri Feb 27, 2015 11:01 am
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)
Re: Export to Text is not working in 2014.3.0.0 version
Posted: Fri Feb 27, 2015 11:40 am
by HighAley
Hello.
Please, send us a sample project which reproduces the issue.
Thank you.
Re: Export to Text is not working in 2014.3.0.0 version
Posted: Mon Mar 02, 2015 7:04 am
by sachinrmore
I have attached the sample application. You can reproduce with it.
Re: Export to Text is not working in 2014.3.0.0 version
Posted: Mon Mar 02, 2015 10:15 am
by Alex K.
Hello,
The issue is fixed. The solution will be available in the next build in this week.
Thank you.