Telerik Forums
Reporting Forum
3 answers
154 views
Telerik.ReportViewer.WinForms (v. 3.0.9.430)

I get the error listed below when loading an app I built in Windows 7 64bit.  I can run this same app in a Win7 (64bit) VM without issue. This causes the app to crash.  Is this a build issue?

This dump was captured using DebugView (http://technet.microsoft.com/en-us/sysinternals/bb896647 )

<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ColonialFence.exe</AppDomain><Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object reference not set to an instance of an object.</Message><StackTrace>   at Telerik.ReportViewer.WinForms.WinViewer.UpdateScrollSize() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 817
00000331 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer.OnSizeChanged(EventArgs eventArgs) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 340
00000332 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
00000333 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
00000334 10.12580299 [2964]    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
00000335 10.12580299 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
00000336 10.12580299 [2964]    at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecified specified)
00000337 10.12580299 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000338 10.12580299 [2964]    at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000339 10.12580299 [2964]    at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
00000340 10.12580299 [2964]    at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
00000341 10.12580299 [2964]    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
00000342 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.ReportViewerAreaBase.InitializeComponent() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewerAreaBase.cs:line 163
00000343 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 91
00000344 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.ReportViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewer.cs:line 11
00000345 10.12580299 [2964]    at ColonialFence.PrintForm.InitializeComponent() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.Designer.cs:line 32
00000346 10.12580299 [2964]    at ColonialFence.PrintForm..ctor() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.cs:line 43
00000347 10.12580299 [2964]    at ColonialFence.Program.Main() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\Program.cs:line 265</StackTrace><ExceptionString>System.NullReferenceException: Object reference not set to an instance of an object.
00000348 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer.UpdateScrollSize() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 817
00000349 10.12580299 [2964]    at Telerik.ReportViewer.WinForms.WinViewer.OnSizeChanged(EventArgs eventArgs) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 340
00000350 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
00000351 10.12580299 [2964]    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
00000352 10.12580299 [2964]    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
00000353 10.12580299 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
00000354 10.12580299 [2964]    at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecifie
00000355 10.12589359 [2964] d specified)
00000356 10.12589359 [2964]    at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000357 10.12589359 [2964]    at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
00000358 10.12589359 [2964]    at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
00000359 10.12589359 [2964]    at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
00000360 10.12589359 [2964]    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
00000361 10.12589359 [2964]    at Telerik.ReportViewer.WinForms.ReportViewerAreaBase.InitializeComponent() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewerAreaBase.cs:line 163
00000362 10.12589359 [2964]    at Telerik.ReportViewer.WinForms.WinViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\WinViewer.cs:line 91
00000363 10.12589359 [2964]    at Telerik.ReportViewer.WinForms.ReportViewer..ctor() in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WinForms\ReportViewer.cs:line 11
00000364 10.12589359 [2964]    at ColonialFence.PrintForm.InitializeComponent() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.Designer.cs:line 32
00000365 10.12589359 [2964]    at ColonialFence.PrintForm..ctor() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\PrintForm.cs:line 43
00000366 10.12589359 [2964]    at ColonialFence.Program.Main() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\Program.cs:line 265</ExceptionString></Exception></TraceRecord>
Steve
Telerik team
 answered on 18 Jan 2012
1 answer
54 views
Hi,

I have to develope a SilverLight4 component that uses Telerik Reporting, and I want to send an object list (List<MyObjectType>) to the report constructor or wherever because I need that the report engine makes the report with these data.

Is it possible right now with "Telerik_Reporting_Q3_2011_v5_3_11_1116" version?

If the answer is "No, It is not", is there any alternative (without making database connections)?

Thanks for your work.

Ricardo Chorro.
IvanY
Telerik team
 answered on 17 Jan 2012
1 answer
253 views
Hi,

In my report, I used lucida sans unicode font and set it to bold. It works fine in html rendering, rtf rendering. But while exporting to pdf, bold font is not displaying in pdf. It is only displaying regular font.

Please help me.
IvanY
Telerik team
 answered on 17 Jan 2012
1 answer
86 views
I'm using web Report Viewer with Ajax in next scenario:
Report is showed after push button(Ajax request to server), and after next push to button Report is unloaded.
But after unload report viewer (set Visible=false), AdjustReportAreaHeight continue to raise. In result I see javascript error "reportTable is null" each time when page is resized.
See below piece of your code. Error raised at "reportTable.rows[reportTable.rows.length - 1]"

ReportViewer.prototype.get_Height = function ()
{
var reportTable = document.getElementById(this.reportTableId);
var lastRow = reportTable.rows[reportTable.rows.length - 1];
var oldDisplay = lastRow.style.display;
lastRow.style.display = "none";
var viewer = document.getElementById(this.clientID);
var clientHeight = viewer.clientHeight;
lastRow.style.display = oldDisplay;
return clientHeight;
}


Please fix this problem, and write how to possible fix it at current version.

Telerik Ajax Components 2011 Q3 (2011.3.1227.35)
Telerik Reporing 2011 Q3 (5.3.11.1222)
Elian
Telerik team
 answered on 17 Jan 2012
1 answer
92 views
Hi, I'm using the Telerik chart control to create a Gantt chart. I have managed to produce something close to what I need using sample code I found on these forums, but I have a couple questions.

I need milestones and tasks to be on separate lines, like they are in a Microsoft Project Gantt chart. I have one series for milestones and one for tasks, so that I can the milestones to show up as symbols, and the tasks to show up as bars. However, in order to have this work properly, I needed to do a workaround where my datasource is a list of all milestones and tasks combined into 1 table, and if the start date and end date are the same, I assume that it is a milestone. Is this the correct way to accomplish this? It does not seem correct to me, because I have to create a "fake" column in the database to hold Milestone information, just so that symbols are drawn only on the correct lines. Here is my code that creates the data table. I then bind my chart to this data table.

DataTable table = new DataTable();
table.Columns.Add("Name", typeof(string));
table.Columns.Add("From", typeof(double));
table.Columns.Add("Milestone", typeof(double));
table.Columns.Add("To", typeof(double));
  
for (int i = 0; i < names.Count; i++)
{
    DataRow row = table.NewRow();
    row["Name"] = names[i];
    row["From"] = startDates[i].ToOADate();
    row["To"] = endDates[i].ToOADate();
    if (startDates[i] == endDates[i])
        row["Milestone"] = startDates[i].ToOADate();
    table.Rows.Add(row);
}
  
return table;

Also, is there a way that I can draw dependency lines between tasks, to show if a task is dependent upon other tasks? Thank you.
Hadib Ahmabi
Top achievements
Rank 1
 answered on 17 Jan 2012
2 answers
102 views
Why is there a copy of the the max y value and the max x value showing in the top left? Stacked on top of each other. (See screenshot). Q2 2010 version.



dennis
Top achievements
Rank 1
 answered on 17 Jan 2012
6 answers
196 views
Hello,
    Is it possible to have multiple y axis stacked one on other, (i.e) if i have 4 series have 4 y axis?  The graph would look like 4 Y-axis in the left side since 4 series displayed all the 4 would be having different scaling.
I do not want some thing similar to the "Y Axis Type".

I am using visual studio 2010, Telerik Reporting (licensed -TV446243)

Regards,
Saravanan.R
Saravanan
Top achievements
Rank 1
 answered on 17 Jan 2012
0 answers
114 views
Hey guys,
  
I am working on a .NET 4 Windows Forms application. The application reads data from a VistaDB 4.1 database located in the installation directory, and display a report using Telerik Reporting. The data is phone usage statistics for different people. The db therefore contains a Client table identifying the people in the system and Statistics table, with a foreign key of the client ID and containing the usage statistics for the user.
  
I want to display a listbox on the report allowing the user to select a client from the Client table. Then, the report should only view the data that pertains to this selected client from the Statistics table. The user should be able to keep switching between clients to get a different report.  
  
I know about report parameters, but how exactly do I use them to achieve this goal while working with VistadB? I am working with a manual connection to Vista and NOT a dataset (using the VistaDBConnection object).  
  
Thank you!
John
Top achievements
Rank 1
 asked on 16 Jan 2012
2 answers
178 views
I have an application that uses Silverlight for it's UI front end.
RIA Services (with Entity Framwork) is used for fetching and changing the Entities to POCO objects.

I have 4 projects (Not the actual names of the projects, but suffixes are correct):
Application (Main SL application)
Application.Web (startup Web project)
Domain (SL Class library)
Domain.Web (Main RIA service project with all the services and EntityModels)

There is a RIAService Link between Domain and Domain.Web.
There is a reference to Domain.Web from Application.Web.
There is a reference to Application.Domain from Application.

I am now adding a new ClassLibrary project "ReportLibrary" to house all the reports. I want to use the POCO objects returned by my methods in the services as the source of the reports, but I'm having trouble making the connections needed.
This application is to be deployed to many clients, so the connection string is being stored in the web.config of Application.Web.

My question is:
How do I set up the ReportLibrary project to work with the RIA Service structure I have?

I have looked at this blog Using Telerik Reporting with RIA Services but I don't seem to be able to replicate it. It doesn't really have the same Solution structure.
I tried adding a reference to Domain.Web in ReportLibrary, but when I test the report, it gives the following error:
"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider..."
I also tried adding the EntityFramework connection that I used on the web.config in Application.Web, but it did not fix it.

Thanks,
Elian
Telerik team
 answered on 16 Jan 2012
3 answers
187 views
I have a table which is bound to a dataset using the NeedDataSource event.  Within the table layout I have a SubReport which requires a value to be passed to it (SignItemId) which is taken from the data.

I have worked through all the binding events for the table and for the SubReport but try as I might I am unable to find a way to pass this value to the SubReport.

This is what I am trying at the moment in the SubReport ItemDataBinding event.  It dosent matter where I place the code the DataObject is always returned as nothing.
Dim subReport As Telerik.Reporting.Processing.SubReport = TryCast(sender, Telerik.Reporting.Processing.SubReport)
 
        Dim processingTable As Telerik.Reporting.Processing.Table = TryCast(subReport.Parent, Telerik.Reporting.Processing.Table)
 
        Dim dataRow As System.Data.DataRowView = TryCast(processingTable.DataObject, System.Data.DataRowView)
        If dataRow IsNot Nothing Then
            MastDetails1.SignId = CInt((dataRow("SignItemId")))
        End If
Elian
Telerik team
 answered on 16 Jan 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?