Telerik Forums
Reporting Forum
3 answers
111 views
Hello

I am working with Telerik reports in Microsoft Visual Studio 2010. Using the code in a Telerik Reporting Tutorial, I am trying to use a C# code the designer code to populate and assign a data source. Following is my code:

namespace ClassLibrary3
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
    using System.Collections.Generic;

    /// <summary>
    /// Summary description for Report5.
    /// </summary>
   

    public partial class Report5 : Telerik.Reporting.Report
    {
      public Product ProductList()  
//The error here is' Not all code paths return a value'
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
            List<Product> products = new List<Product>();
            products.Add(new Product("bicycle"));
            products.Add(new Product("helmet"));
            products.Add(new Product("shoes"));
// Assign the generic list as the report DataSource
            this.DataSource = products;
         

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
    }
     public class Product
{
private string _name;
public Product(string name)
{
_name = name;
}
public string Name
{
get { return _name; }
    set { _name = value; }
}
}
}

Can someone please help me out? How do I get rid of this error message and preview the report?

Thanks,
Steve
Telerik team
 answered on 21 Jun 2012
1 answer
919 views
Hi,

We are using RenderReport functionality of ReportProcessor class for "Export to PDF" and were able to export successfully by passing type "png" to OutFormat param.

We are using localization in our application and it is working fine for almost all cultures except for Japanese.

We noticed that in Report Viewer it is showing in Japanese, after we export to PDF it is showing small boxes when we open exported pdf file.

Also noticed that Printing and Export to Excel(which uses the same RenderReport functionality) are working fine even when Japanese is set as current culture.

Please suggest us the solution to export report to pdf using Japanese language.

Thanks in advance.
Praveen.
Steve
Telerik team
 answered on 20 Jun 2012
1 answer
168 views
Hi,

Environment (client -> HTTPS -> F5 -> HTTP -> reporting service) my service is behind F5 load balancer which offloads SSL. Reporting Service throw exception: 
"The provided URI scheme 'https' is invalid; expected 'http'."  
Chris Gillies
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
62 views
In my little silverlight application I've just bound up the ReportViewers Report Property to the selected item of a combobox. When I change the selected report the report viewer does not render the new report apart for the first time you select a report, it always stays the same as the original report generated.
I've checked on the server to ensure the new report is being passed back to the server correctly and in RenderAndCache, the report is passed back correctly.
The combobox is populated form calling the server to get available reports.


Can anyone help with what I'm doing wrong.

Regards
             Brian Wilkinson
Peter
Telerik team
 answered on 20 Jun 2012
3 answers
141 views
Well,

Again, any suggestion to change this code.  Report is obselete

ReportViewerFC.Report = ( (Telerik.Reporting.Report)Activator.CreateInstance("Rapports", ViewData["Gabarit"].ToString()).Unwrap());       
Telerik.Reporting.Report report = (Telerik.Reporting.Report)this.ReportViewerFC.Report;
Stephan
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
158 views
Hello,

I upgrade my report from version 6.0.12.215 to 6.1.12.611 and I have a new error...

The 'Report' property cannot be set declaratively.


And now?
Peter
Telerik team
 answered on 20 Jun 2012
7 answers
184 views
Hi!

I've two questions.
1. Is there a way to skip labels (i.e. Label start at row 2 column 3 ?
2. Is there a way to change the label direction from down to cross ?

thanks for helping
Steve
Telerik team
 answered on 20 Jun 2012
2 answers
413 views
I just updated one of my smaller reporting projects, containing 32 reports, with the latest Q2 2012 code.  Several of the reports contain sub reports.  I am, as of Q2 2012, unable to directly set the data source property.

In prior versions of the code I would do something like:

List<BusinessObject> iData = new List<BusinessObject>;
List<BusinessObject2> iSubData = new List<BusinessObject2>;

Report r = new Report();
r.DataSource = iData;
SubReport sr = (SubReport)r.Items.Find("subreportname", true)[0];
if (sr != null) {
     sr.ReportSource.DataSource = iSubData;
}


Under Q2 it does not seem to be possible to directly set the datasource.  All the instructions say "InstanceReportSource" however I cannot see how to use this with a sub report.  Can someone tell me what I am missing?  The online docs seem to imply I must use a need datasource event.  That would require a complete redesign of my "generic" report logic.

SabatonRocks
Top achievements
Rank 1
 answered on 19 Jun 2012
3 answers
223 views

Folks, I am using Telerik Reporting Q1 2012 for Web (C#). I am new to Telerik Reporting.

Attached is screen shot of my Report Catalog. How do I change Report Name appearance order? I would like to see Report name appear in following order (Horizontal - Left to Right) not like how they appear in attached screen shot order.

1) Client Master Referrals 2) Client Master Intakes 3) Client Master No Show Cancellations

Right now when I create a new report, I do not know how to change the order appearance in Report Catalog.

Also I would like to know how to Change Report Name Label in Report Catalog. For Example: My actual name in Report #1 is ClientMasterReferrals.cs but I would like the label to be as Client Master Referrals or BHS Client Master Referrals. Quick question is can my report label be anything regardless of my actual report name or the Label name will always be inherited from actual report name?

Since I am beginner to Telerik Reporting, I just copied existing Telerik Report Catalog from Telerik Demo to my project but I am stuck with how to change the report name appearance order as well how to change the report name label.  

Any guidance will be appreciated.

Thanks

gc_0620



Steve
Telerik team
 answered on 19 Jun 2012
2 answers
132 views
I want the sql query in the sqldatasource of my report to be executed in two different ways

if (parameter =1)
{

}

else
{

}

How can i do this programmatically....ThankYou in advance
akpaga akpaga
Top achievements
Rank 1
 answered on 19 Jun 2012
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?