Telerik Forums
Reporting Forum
1 answer
148 views
Hi

I am creating the Telerik report we need to create a report dynamically ,so i create one button ,
on button click the call come in aspx page and i also using .ascx(user control).on ascx page i put the telerik Report viewer
so report generating on .ascx(user control) that .ascx page display dynamically on " div "  on aspx page. but the problem
report design is display but data is not display .

so please help me.

Regard,
Hitesh
KS
Top achievements
Rank 1
 answered on 25 Feb 2014
2 answers
109 views
I am trying to design a report contains a start date and end date, which needs the start and end day of current month, I implemented the logic in a C# assembly and used it in standalone designer, it's works well in designer, but when I embed it in a asp.net web application, I got this error :
Object reference not set to an instance of an object.
at Telerik.Reporting.Expressions.FunctionNode.Eval(Object row, Object context)
at Telerik.Reporting.Processing.ReportParametersManager`1.CalculateValue(P parameter, Object definitionValue, IDictionary`2 newValues, Object data)
at Telerik.Reporting.Processing.ReportParametersManager`1.CalculateParameterProperties(P parameter, IReportParameter parameterDef, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ReportParametersManager`1.Calculate(P parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ReportParametersManager`1.CalculateParameters(IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ReportParametersManager`1.get_Parameters()
at Telerik.Reporting.Processing.DocumentParametersManager`1.InitializeMergeMap()
at Telerik.Reporting.Processing.DocumentParametersManager`1..ctor(IReportDocument definition)
at Telerik.Reporting.Processing.DocumentParametersManager..ctor(IReportDocument definition)
at Telerik.ReportViewer.WebForms.ParametersPage.CreateParametersManager(IReportDocument reportDocument)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

If I replace the values of 2 parameters to static values like "2013-01-01", it works.
 How can I achieve this goal ?
KS
Top achievements
Rank 1
 answered on 25 Feb 2014
1 answer
71 views
We have designed our report with a chart as in the attached image.
We pass the data to the report manually.

Dim rpt As New ReportLibrary.Shipping.ShippingByShipperHourly
rpt.DataSource = ds

 
The report has a chart on the detail section. We want to filter the charge data based on the UserID in the dataset.
Basically, dataset contains data for several users. Each user is displayed and then its shipping activity chart is displayed along with it. Then the row for other user and its chart. 

I need some code, I can put behind the NeedDataSource of the Chart component where I can filter the required data based on the current user data being rendered.

Is it possible? If so, how can we do it?

thanks
Sameers
KS
Top achievements
Rank 1
 answered on 25 Feb 2014
6 answers
2.7K+ views
When I try to use the html 5 report viewer, it attempts to hit the following URL.

http://localhost:58924/api/TelerikReports/clients/[object%20Object]/parameters

it returns 404 (Not Found)

If I open the link in the browser I get the following error.

<Error><Message>The requested resource does not support http method 'GET'.</Message></Error>
Stef
Telerik team
 answered on 25 Feb 2014
1 answer
48 views
Hi telerik,

Using wpf reportviewer and telerik Q1 2013 SP1
I'm currently having an issue with localization in my solution. My report is in English by default and the additional language is French. When I debug the solution I don't have any problem but in release none of the fields will be globalized. Only culture related fields like dates are correctly globalized, the rest is all in english.


Please note that I have other reports in the solution whom will localize correctly while using the same pattern.
Stef
Telerik team
 answered on 25 Feb 2014
0 answers
73 views
please is it possible to pass sessions as parameters for a telerik report on page load.
If yes how can i please go about it. Thanks
Edd
Top achievements
Rank 1
 asked on 25 Feb 2014
1 answer
67 views

We are using the HTML5 report viewer (7.2.14.127). To provide localization we are passing all text to used defined functions. In the footer of our reports we have the normal "Page X of Y" text. 

In visual studio preview we see the proper page numbers on each page and if from Visual Studio preview I save to PDF the pdf file has the proper page numbering.

However when deployed and used through the HTML5 viewer and exporting to PDF every page has the same page number which is equal to the page count (e.g. "Page 5 of 5" on all 5 pages).

In our report the expression looks like this:

= ReportsLibrary.Localization.GetText("en_us", "pagenumbers", PageNumber, PageCount)

Which resolves down to this code:
string.Format("Page {0} of {1}", pageNumber, pageCount);

Is this a bug or am I missing something?






string.Format("Page {0} of {1}, PageNumber, PageCount)
Rob
Top achievements
Rank 1
 answered on 24 Feb 2014
1 answer
275 views
I am adding a stored procedure event and using the code below which I got from another thread about stored procedures and fit it for my needs.  Unfortunately, I am getting errors on the (.Load).  The error says "Event Load Cannot be Found" and IsPostBack is not declared.

Any help would be appreciated.  The code I am using is below.  Also, if you see any other errors with the code let me know, thanks.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        If Not IsPostBack = False Then
            Dim myReport As New Report1()
 
            Dim sql = "[dbo].[spMBUser]"
            Dim connectionString = "Data Source=MyServer;Initial Catalog=NDB;Integrated Security=True"
            Dim command As New SqlCommand(sql, New SqlConnection(connectionString))
            command.CommandType = CommandType.StoredProcedure
 
            Dim sqlparam As New SqlParameter("@uval", SqlDbType.NVarChar)
            sqlparam.Value = 3
            command.Parameters.Add(sqlparam)
 
            Dim adapter As New SqlDataAdapter(command)
            Dim dataSet As New DataSet()
            adapter.Fill(dataSet)
 
            myReport.DataSource = dataSet.Tables(0)
 
            Dim reportSourceInstance1 As New InstanceReportSource()
            reportSourceInstance1.ReportDocument = myReport
            reportSourceInstance1.Parameters.Add("uval", HttpContext.Current.User.Identity.Name)
            ReportViewer1.ReportSource = reportSourceInstance1
 
 
        End If
    End Sub
Squall
Top achievements
Rank 1
 answered on 24 Feb 2014
3 answers
212 views
I can see stacked charts are supported and clustered charts are too, but it seems that jointly stacked and clustered at the same time are not.

I appreciate that this is complex, is it on the roadmap?

An example of what I mean by stacked and clustered at the same time;
http://peltiertech.com/WordPress/clustered-stacked-column-bar-charts/ 

An example of what Telerik reports / charts currently support and look like;
http://www.telerik.com/help/wpf/radchartview-series-chartseries.html 

Thanks in advance

Terry
Stef
Telerik team
 answered on 24 Feb 2014
5 answers
270 views
Hello,

I'm having a problem with Telerik Reporting. All the reports in my project display properly when running on my development box, but once deployed to our test web server the following error is displayed in the report viewer,

Object reference not set to an instance of an object.
 
at Telerik.Reporting.Processing.ParametersManager`1..ctor(IReportDocument definition, ICollection`1 parameters)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

If I repeatedly click a button to run the report it sometimes will eventually render after about 15 or 20 attempts, sometimes not. I occasionally will see a "Report is unavailable or session has expired." message as well. Also if the report does eventually appear none of the images in the report will show unless I right-click them and select "Show Image". In trying to troubleshoot this problem I have stripped down the report until it contained nothing but a single text box, no parameters, no data access, no code in the report at all and I still get the error.

I'm using Reporting version 6.1.12.611 and IE8. The pages use radTabStrip, radMultiPage and radPageView components, but I removed these to see if they might be the cause of the problem to no avail.

I'm calling the report using code like this,
Telerik.Reporting.InstanceReportSource instanceReport = new Telerik.Reporting.InstanceReportSource();
instanceReport.ReportDocument = new Civil.CivilReports.CivilCourtWorksheet();
rvCourtSchedule.ReportSource = instanceReport;

Any idea the cause of this error and how to avoid it?

Thank you,
John
Stef
Telerik team
 answered on 24 Feb 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?