Telerik Forums
Reporting Forum
3 answers
304 views
Hello, I am creating a report with telerik report Q1 2012 I have this error when running the application:

Message: Unhandled Error in Silverlight 4 Application
Code: 4004    

Category: ManagedRuntimeError       

Message: System.InvalidCastException: Specified cast is not valid.


   at Telerik.ReportViewer.Silverlight.ZoomConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.BindingExpression.ConvertToTarget(Object value)
   at System.Windows.Data.BindingExpression.UpdateTemporaryValue()
   at System.Windows.Data.BindingExpression.GetValue(DependencyObject d, DependencyProperty dp)
   at System.Windows.DependencyObject.EvaluateExpression(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry)
   at System.Windows.DependencyObject.EvaluateBaseValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.EvaluateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.SendDataToTarget()
   at System.Windows.Data.BindingExpression.SourceAcquired()
   at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
   at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
   at System.Windows.DataContextChangedEventHandler.Invoke(Object sender, DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyProperty dp)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
   at Telerik.ReportViewer.Silverlight.ReportViewer.Initialize()
   at Telerik.ReportViewer.Silverlight.ReportViewer.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)     

Line: 121
Char: 5
Code: 0
URI: http://localhost:1133/js/utilitarios.js

I hope someone can help me, is my first application using telerik report
Chavdar
Telerik team
 answered on 23 Apr 2013
1 answer
357 views
Hi,

i'm trying to create a table in telerik reporting.
My problem is that i cannot make manually the same height for every row in the table.
I'm trying to use "make same height" function, but doesn't work (maybe i cannot use it right).
Can u explain me how it works?

Thank u! (sorry for my bad english)
IvanY
Telerik team
 answered on 23 Apr 2013
1 answer
47 views
We have been using reportviewer for over a year and just did an update from 2012 Q3 to 2013 Q1 and now under the Export (disk) icon all of the export options no longer display.

How do I get them back?
Stef
Telerik team
 answered on 23 Apr 2013
1 answer
787 views
I added table using table wizard and it gives the following error on the report.

An error has occurred while processing Table 'Table1': Login failed for user

I am using a sql data source.
Chavdar
Telerik team
 answered on 23 Apr 2013
1 answer
668 views
Hi Team,

I have a requirement where we have several tables defined in the report. And we have to apply different styles to these tables in the code behind based on some data. I referred the following links which gives an idea.

http://www.telerik.com/help/reporting/style-using-styles-to-customize-reports.html

http://www.telerik.com/help/reporting/style-understanding-style-selectors.html

But I am not able to see a property called "Stylesheet" in the properties section of my report. I am not sure if I am missing anything.

I have attached a screen shot of where I am looking for it. Please guide me on how to actually add different stylenames at design time and access them in the code behind.

Thanks,
Nagesh

IvanY
Telerik team
 answered on 23 Apr 2013
5 answers
85 views
Hi,

We recently upgraded our app to silverlight 5, and telerik tools and reporting Q3 2012.  We've noticed a change in printing behaviour with the silverlight report viewer running in native printing mode.

Previously you had to select the orientation every time via the print dialog if you wanted to deviate from the printers default orientation, regardless of the setting on the report.  I understand the reasons for that.

Now, if you print a portrait report to a portrait printer, it prints fine.  However, if you print a landscape report to the printer, without changing orientation to landscape on the printer, it prints in landscape but shunts the entire report to the right by about half a centimetre or thereabouts, potentially causing the very right hand side of the report to be lost.  It does the same thing if you print a portrait report to a printer in landscape orientaion (that is to say it prints in portrait but shunts the report to the right).

Is page orientation meant to work in SL5 with telerik reporting and the report viewer?  Is there a setting we've got wrong somewhere?

If this isn't behaviour you've come across I'll need to scan a print to upload as it obviously only happens to an actual printed page.
Chavdar
Telerik team
 answered on 23 Apr 2013
1 answer
116 views
Hi all,

I am new to Telerik Reporting, and I have to make the chart shown in Picture1. For now, I have achieved the result shown in Picture2.
Ideally, the resulting chart should be exactly identical to Picture1, but for now the main goal is adding  the labels "CEO", "CFO", etc.  above the bars, and  the numbers in the yellow circles.

I have no idea on how to do this; can anyone point me in the right direction?

Thanks in advance,

Gianfranco
IvanY
Telerik team
 answered on 22 Apr 2013
1 answer
458 views
Hello,

to get a jump start in reporting.

Is it in any way possible to import Word or Excel reporting documents as a template(utilizing the format), into report designer, and then continue to work with them in Report designer ? (remember Word/Excel may be saved in xlsx, xml or html format).

Any tricks we do not know about ?

SwanB
IvanY
Telerik team
 answered on 22 Apr 2013
8 answers
1.4K+ views
I have a report that works fine when all report's parameters have values that make the data source get records.
But when the result's query has zero records, the report gives me the following error:

An error has occured while processing TextBox 'paymentIdDataTextBox':
The expression contains object 'paymentId' that is not defined in the current context.

How can I display a "No Records Found" message?
Keith
Top achievements
Rank 1
 answered on 20 Apr 2013
1 answer
177 views
Hello, I have a need to display in the report the passed in parameters and the data in tables. I like to use the same data source for this
for the table and the report. This causes a bug, where the print page count is wrong. Say your table data is 2 pages long, the page count is much higher. It is even worse where multiple tables share the same object data source.

It is nice to reuse the logic and the same object data source, but present different information, such as table header information and let tables display different parts of the row data. Is it possible to avoid the excessive page count in the print preview. This will cause some dissatisfaction for users wanting to print their reports onto paper. 

Regards 
Tore Aurstad, 
Systems developer
HEMIT 

IvanY
Telerik team
 answered on 19 Apr 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?