Telerik Forums
Reporting Forum
4 answers
262 views
Hi All,

I've been getting this error on/off again since I upgraded to Q2 2010. I have multiple reports which haven't been changed in a while which do a Sum() in a Group header. I get an error stating 'An error has occurred while processing TextBox 'textBox8': The expression contains undefined function call Sum()'.

It wouldn't be so bad if I could re-create this at will, but this will happen sometimes and then other times it will be fine with the _exact_ same report data. Like I said, these reports haven't changed for over a year and are simply doing this in the expression of the TextBox.

= Sum(Fields.DiscountedPriceAmt)
Steve
Telerik team
 answered on 28 Mar 2011
3 answers
108 views
Good Day All

I have used the Report wizard to create a barcoded Report. but now i have some few questions about this.

1) I want to generate the Barcode Number , what is the good way to do that?

2) i want to retrieve the Barcode based on a Parameter

3) I see that the report designer is separate entitiy , even your examples show that you create a report separately , now how can i use the report that has been created in my silverlight app. I see in my silverlight toolbox there is

"ErroStatus"

"ReportParameterConrtol"

"ReportViewer"

"Dialogbox"

4) how and what contrlols are used to display the Report that have been created in the designer ?

5) How to pass the parameters from the code behind?

Thanks


Steve
Telerik team
 answered on 28 Mar 2011
1 answer
98 views
Hi,

   We need to print barcodes, but we dont want to use full reporting dependancies for that. Is there any way that using telerik components (ASP.net AJAX or any other), we can generate barcode and save them/put into PDF? But we dont want to use reporting depedencies for that, it doesn't seems good to break the egg with the hammer.

   Thanks,
Sebastian
Telerik team
 answered on 28 Mar 2011
1 answer
69 views
Hi,

We have one report in which we are adding parameter in subreport in main report and accessing these parameter in subreport's need_datasource function.i.e.

Method in Main report :----

 

public AnalysisReport(DataSet ds)
{
    InitializeComponent();
    Parameter pArr = new Parameter("Analysis", ds.Tables["Analysis"]);
    subReport.Parameters.Add(pArr);
}

Method in Sub report:----

 

 

 

 

private void SubReport_NeedDataSource(object sender, EventArgs e)
{
    DataTable dtAnalysis = (DataTable)((sender as Telerik.Reporting.Processing.Report).Parameters["Analysis"]);
    if (dtAnalysis != null)
    {
        (sender as Telerik.Reporting.Processing.Report).DataSource = dtAnalysis ;
    }
}

 

my problem is,
this code was working fine till we haven't updated the telerik DLL 5.0.11.316,
after updating this DLL we are getting error on subreport in converting parameter in to Datatable 
can you please let us know how to resolve this problem.
Thanks  

 

Saujanya
Top achievements
Rank 1
 answered on 28 Mar 2011
1 answer
47 views
I'have made a standard report from the wizard but how can I create a second page?

Thanks,

Mart
Peter
Telerik team
 answered on 28 Mar 2011
2 answers
132 views
I upgraded from VS 2008 to 2010.  Now when I double-click on my report.cs file, it opens as a C# file instead of opening in the report designer.

What did I do wrong?
WombatEd
Top achievements
Rank 1
 answered on 27 Mar 2011
0 answers
84 views
When I try to set ProgressText with:

                <telerik:ReportViewer ID="ReportViewer1" runat="server"
                    ToolbarVisible="False" Height="100%" Width="100%" ProgressText="...">
                </telerik:ReportViewer>

or

ReportViewer1.ProgressText = "...."

I got error: 

'Public Property ProgressText As String' is obsolete: 'Use Resources.ProcessingReportMessage property instead or the resource file.'.

This is normaly worked until I updated Q1-2010 to Q1-2011 version!! What is wrong?

Gosha
Top achievements
Rank 1
 asked on 27 Mar 2011
2 answers
58 views
Hello,

I am a current customer of the Telerik Rad Controls for Silverlight.  I just downloaded the Reporting trial and am trying to figure out how to get reports viewable from my Silverlight applications.  I have found many videos on how to build the reports, but nothing about how to display them from Silverlight.  One video I found said the Viewer was out of data and to use the RadHtmlPlaceholder.

First, do all the reports need to be displayed using the HtmlPlaceholder, or is there an actual Silverlight Viewer for this?  Second, please point me to a *current* video/tutorial/walkthough on how to get started using Reporting with Silverlight 4.

Thanks,

-Scott
Scott
Top achievements
Rank 1
 answered on 26 Mar 2011
2 answers
337 views

Hi,

I am trying to use subreports in the following way: a parent report contains A LIST and for every item in the list I would like to show a subreport.

This is parent report list load: 

 

public void ReportNeedDataSource(object sender, System.EventArgs e)
     
    DataSource = applicationReport;
    if ((applicationReport != null) && (applicationReport.Questionaire != null))
    {
        stepsList.DataSource = applicationReport.Questionaire.Steps;
    }
}

 

 

And in the subreport NeedDataSource event handler, I would like to get list item object since it is called for every stepList.DataSource item for filling some subreport fields.

What would be the best aproach to accomplish this?

Best regards,
Costin

Costin Morariu
Top achievements
Rank 1
 answered on 25 Mar 2011
1 answer
134 views

Hello!

Is is possible to pass a variable into a userfunction, when not using Reportparameters that have been setup inside the Design mode?

Right now I am passing parameters from the associated webpage via a sqldatasource all set up programatically on the aspx page, and that part works fine. But now I would like to send variables into userfunctions located inside the code behind page for the report. Still not using the design mode, but all should be via programming.

web aspx page:

            Dim sqlDataSource1 As New SqlDataSource()

            sqlDataSource1.ProviderName = "System.Data.SqlClient"

            sqlDataSource1.ConnectionString = "Data Source= etc"

            sqlDataSource1.SelectCommand = strSQL

            Dim parFakturaNrStart As New Telerik.Reporting.Parameter()

            parFakturaNrStart.Value = "112112"

            sqlDataSource1.Parameters.Add("@parFakturaNrStart", DbType.String, parFakturaNrStart.Value)

            Dim parFakturaNrEnd As New Telerik.Reporting.Parameter()

            parFakturaNrEnd.Value = "112312"

            sqlDataSource1.Parameters.Add("@parFakturaNrEnd", DbType.String, parFakturaNrEnd.Value)

           
    Me.ReportViewer1.Report = New basic_report

            Dim report As Telerik.Reporting.Report = DirectCast(Me.ReportViewer1.Report, Telerik.Reporting.Report)

            report.DataSource = sqlDataSource1

' code here to send to the userfunction


This part takes care of the main report itself and works just fine. That is, the main report renders on the webpage without a problem.


But what do I have to do on the aspx page and/or reports code behind page, in order to send variables or a "parameter" to be picked up by the User function in its Expression?


Inside Edit Expression dialog:

{MyTelerikReportsClassLib.basic_report.getAllInvoicesInSelectionForDisplay(outgoing_variable1, outgoing_variable2)}


Report code behind page:


Function getAllInvoicesInSelectionForDisplay(incoming_variable_here1 as string, incoming_variable_here2 as string )

' further code here

' actually another SQL query to output its result at the end of this function

Return something

End Function

Please advise how to do this.

Best regards

Lars

Hrisi
Telerik team
 answered on 25 Mar 2011
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?