Telerik Forums
Reporting Forum
1 answer
69 views
Hy,

i'm working with Telerik Reporting and have some problems. I create one master report where i have report parameters and a header of the page. After user selects values for parameters (2x datetime, 4x Integer, 1x Boolean) i want to show right SubReport (if true then subreport1 else subreport2). Those two subreports use 6 parameter values from master report parameteres and I pass those values to SqlDataSource in each subreport.

If I delete one SubReport field my report works as it should. But if I have two SubReport fields on master report i get "Object reference not set to an instance of an object." I dont have any idea what i'm doing wrong.

I have test each subreport in designer and datasource are ok. In master report i have two DataBound methods where I set Visible to true or false which subreport to show.

public static bool subMeseci = true;
 
private void subReport_PoMesecih_ItemDataBound(object sender, EventArgs e)
        {
             
            subMeseci = (bool)this.ReportParameters["months"].Value;
            if (subMeseci)
                (sender as Telerik.Reporting.Processing.SubReport).Visible = true;
            else
                (sender as Telerik.Reporting.Processing.SubReport).Visible = false;
             
        }
 
        private void subReport_Vse_ItemDataBound(object sender, EventArgs e)
        {
             
                subMeseci = (bool)this.ReportParameters["months"].Value;
                if (subMeseci)
                    (sender as Telerik.Reporting.Processing.SubReport).Visible = false;
                else
                    (sender as Telerik.Reporting.Processing.SubReport).Visible = true;
        }

I also set all 6 parameters that i use in subreport datasource.

I have attached two photos (one is my master report wher i have two subreports in detail section, and other shows report parameters that i pass to subreport).

First I was thinking that i do something wrong when i'm passing parameters to subreport but as i mentioned in the begining if i delete one subreport field from master report it works ok.

Sorry for my english but i hope you get the point what my problem is.
Peter
Telerik team
 answered on 29 Mar 2011
3 answers
146 views
Hi,

I have telerik reporting services configured in 2 website in my machine.  I can get the wsdl file from both website, but only one of the services is actually working.

The 2 urls are:
https://localhost/svxservices/solvexia.svx.server.services.ReportService.svc
and
https://localhost/client.application.Web/ReportService.svc

The url for the aspx page that host the silverlight viewer is https://localhost/client.application.web/CreateAuditDocumentForMultipleProcesses.asp

Does telerik report services have any cross domain restrictions?


Regards
Bill
Hrisi
Telerik team
 answered on 29 Mar 2011
5 answers
457 views
Hi,
I have problem exporting 109 pages to excel, it just timeouts.
The web reportviewer loads perfectly in ~20 seconds and generating a PDF loads in ~15 seconds but generating a EXCEL timeouts after about 5 minutes.

Is there some way to speed up excels or is it a bug?

(i'm using report dll 2009 3.2.9.1211 and asp.net dll 2009.3.1314.35)

Regards,
Mattias
Badrinarayanan
Top achievements
Rank 1
 answered on 29 Mar 2011
3 answers
261 views
I generated a pdf document using telerik report Q3 2009 which contains arabic text. In report viewer, arabic text is coming properly but in pdf some letter of the arabic text is cut. I did lot of effort to fix this, but i couldn't.This is very critical for me, because my client is wait for me. Can you please help me to fix this issue. Here i am attaching one image file. I have marked in image where the arabic character is getting cut.
Steve
Telerik team
 answered on 28 Mar 2011
2 answers
253 views
I am experiencing problems when deploying my website, that has pages using telerik reporting.  The reports run fine locally and on a development server, but not on the production server.  The page loads but the report bar is missing the images, and when you look at developer tools in chrome you can see the reference to the Telerik.Reporting.axd file is missing (it can't find it).

In the bin folder I have the following dlls as suggested in the documentation:
Telerik.Reporting.dll
Telerik.Reporting.Service.dll
Telerik.Reporting.XamlRendering.dll
Telerik.ReportViewer.WebForms.dll
Telerik.Web.UI.dll

The site is running under IIS7 and i have followed the documentation to ensure that i have the correct tags in the System.WebServer - Handlers section of the web.config file.  

Here is the line i have in the web config file. System.WebServer - Handlers section
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0" />

The only difference between the site that doesn't work and the ones that do, are as follows.
This site is running IIS7 the others are running IIS6.
This site does not have Microsoft Reporting Services installed on it and the development web server does.

Please provide any ideas.
Thanks 
AIU Web Services
Top achievements
Rank 1
 answered on 28 Mar 2011
4 answers
254 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
101 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
93 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
66 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
46 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
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?