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.
Export to Text is not working in 2014.3.0.0 version
-
- Posts: 3
- Joined: Wed Feb 18, 2015 8:54 am
Re: Export to Text is not working in 2014.3.0.0 version
Hello.
Could you specify which version did you use before?
Could you send us a sample project which reproduces the issue?
Thank you.
Could you specify which version did you use before?
Could you send us a sample project which reproduces the issue?
Thank you.
-
- Posts: 3
- Joined: Wed Feb 18, 2015 8:54 am
Re: Export to Text is not working in 2014.3.0.0 version
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)
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.
Re: Export to Text is not working in 2014.3.0.0 version
Hello.
Please, send us a sample project which reproduces the issue.
Thank you.
Please, send us a sample project which reproduces the issue.
Thank you.
-
- Posts: 3
- Joined: Wed Feb 18, 2015 8:54 am
Re: Export to Text is not working in 2014.3.0.0 version
I have attached the sample application. You can reproduce with it.
Re: Export to Text is not working in 2014.3.0.0 version
Hello,
The issue is fixed. The solution will be available in the next build in this week.
Thank you.
The issue is fixed. The solution will be available in the next build in this week.
Thank you.