Telerik Forums
Reporting Forum
1 answer
207 views
Hi,

I'm running Windows 8.1
Visual Studio Pro 2012 Update 4
Telerik Reporting 7.2.13.1016
Telerik Controls for Silverlight version 2013.3.1016.1050

I have a ReportViewer that is throwing the following exception.


Unhandled exception at line 59, column 13 in http://localhost:22414/CityLaw.aspx

0x800a139e - JavaScript runtime error: Unhandled Error in Silverlight Application

Code: 4004   

Category: ManagedRuntimeError      

Message:
System.Runtime.Serialization.SerializationException: There was an error
deserializing the object of type System.String[]. '.', hexadecimal value 0x00,
is an invalid character. Line 1, position 1. ---> System.Xml.XmlException:
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlReader.MoveToContent()
   at System.Xml.XmlReader.IsStartElement(String localname, String ns)
   at System.Xml.XmlDictionaryReader.XmlWrappedReader.IsStartElement(String localName, String namespaceUri)
   at System.Xml.XmlDictionaryReader.IsStartElement(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
   at System.Runtime.Serialization.XmlReaderDelegator.IsStartElement(XmlDictionaryString localname, XmlDictionaryString ns)
   at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
   at System.Runtime.Serialization.DataContractSerializer.InternalIsStartObject(XmlReaderDelegator reader)
   at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

   --- End of inner exception stack trace ---

   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(Stream stream)
   at Telerik.ReportViewer.Silverlight.InvalidSessionsHelper.Load()
   at Telerik.ReportViewer.Silverlight.ReportViewer.ClearInvalidSessions()
   at Telerik.ReportViewer.Silverlight.ReportViewer.Initialize()
   at Telerik.ReportViewer.Silverlight.ReportViewer.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)


The ReportViewer is placed in a ChildWindow.  After the Loaded event of the ChildWindow completes, the exception is thrown.  I've so far been unable to reproduce the problem in a sample project.  Any guidance on how to further troubleshoot the problem would be appreciated.


Thanks!
Aaron







Stef
Telerik team
 answered on 30 Jan 2014
1 answer
52 views
We're seeing instances where when running a report multiple times but with different filters applied to the return set that the print preview will sometimes show the previous result set rather than the current set. Is anyone else experiencing this or found a work around for this?
Hinata
Top achievements
Rank 1
 answered on 30 Jan 2014
1 answer
143 views
Hi. I try to create a report. I try to use table but I can not. I tried table's Need datasource event. I gave" table1.DAtaSource = list;" list contains data I control it. But I can not show datas in table.
How can I use table in report. Thanks in advance...
Nasko
Telerik team
 answered on 30 Jan 2014
4 answers
58 views
I have a Page with a table control, when table has data less than the page length, page border stops half way (only upto the level of data. Would appreciate if someone can give me a solution to this. I need page border tll the footer section even Page doesnt have data to fill.
KS
Top achievements
Rank 1
 answered on 30 Jan 2014
1 answer
240 views
Hi guys,

I am looking for the Standalone Source code, I can't find it...
Does anyone know where is the source code ?

Stef
Telerik team
 answered on 29 Jan 2014
1 answer
69 views

Sir,

I apologize for typo on the topic. Please read subreport.

I have a report called Report1 that has a subreport called subreport1.
This subport1 has another report called Report2.
This Report2 has multiple subreports such as subReportHeader, subReportMain and subReportLast.

I am executing Report1 that should automatically execute all subreports. How do I do that? I am trying to configure this in designer mode.
If you could dynamical approach would be fine too. Please help.

Regards,
Keshab
Nasko
Telerik team
 answered on 29 Jan 2014
1 answer
80 views
I placed a chart into a Telerik report (for the web), and set it's DataSource property to SqlDataSource. 

after tweaking it for some time, this is the best i could get it to look

There doesn't seem to be a way to remove the text labels from plot area. 

The examples i've found on the web talk about doing that via code after data source is bound (via NeedsDataSource event?) however, since i am setting DataSource, that event is not fired. 
squarewave
Top achievements
Rank 1
 answered on 29 Jan 2014
3 answers
135 views

Hello!


On high resolution displays (for example my Dell M3800 laptop with a 3600x1800 display)

and with scaling setting of 200% the height of the page seems to be wrongly calculated.

When I set scaling to 100% in the Display Control Panel,

it works as expected - but of course the rest of the application is then too small to use.



Has anyone else experienced this?



Regards

Erwin



Stef
Telerik team
 answered on 28 Jan 2014
2 answers
164 views
I'm using the following code to try to render a Telerik sample report from an ASP MVC Web app and a Console app directly to a printer with no UI.  The report prints, but it is scaled about 50% and I don't know why.  Running from a WPF app or Windows Service it prints nicely.  Why might this be?

Telerik.Reporting.IReportDocument report = new ListBoundReport();
 
// The standard print controller comes with no UI
System.Drawing.Printing.PrintController standardPrintController =
    new System.Drawing.Printing.StandardPrintController();
 
var processor = new ReportProcessor();
processor.PrintController = standardPrintController;
 
Telerik.Reporting.InstanceReportSource instanceReportSource =
    new Telerik.Reporting.InstanceReportSource();
 
instanceReportSource.ReportDocument = report;
 
var settings = new PrinterSettings();
processor.PrintReport(instanceReportSource, settings);
Stef
Telerik team
 answered on 28 Jan 2014
2 answers
1.1K+ views
Hi, how do I create a Telerik.Reporting.Table Dynamicaly?

So far I have:

Dim

 

panel1 As New Telerik.Reporting.Panel()

 

Dim Table1 As New Telerik.Reporting.Table

 

Table1.Location =

New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Cm), New Telerik.Reporting.Drawing.Unit(15, Telerik.Reporting.Drawing.UnitType.Cm))

 

Table1.Size =

New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(23, Telerik.Reporting.Drawing.UnitType.Cm), New Telerik.Reporting.Drawing.Unit(10, Telerik.Reporting.Drawing.UnitType.Cm))

 


Table1.DataSource = ADatasource

 

panel1.Location =

New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(0,
Telerik.Reporting.Drawing.UnitType.Cm),
New Telerik.Reporting.Drawing.Unit(1, Telerik.Reporting.Drawing.UnitType.Cm))

 

panel1.Size =

New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(21, Telerik.Reporting.Drawing.UnitType.Cm), New Telerik.Reporting.Drawing.Unit(21, Telerik.Reporting.Drawing.UnitType.Cm))

 

panel1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid

 

 

panel1.Items.Add(Table1)

 

Report3.Items.Add(panel1)

 

ReportViewer1.Report = Report3



but the table doesnt show , any help please?

endbil
Top achievements
Rank 1
 answered on 28 Jan 2014
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?