Telerik Forums
Reporting Forum
3 answers
315 views
Hi there

I have reporting DLL setup up that I reference in my web application.

There is a report type called DefaultCertificate in this class lib, I can change the datasource dynamically, but what I want to do is apply a template at runtime as well.

Some clients will have their own template, but with the same fields. I know there is something like a trdx file that keeps the template? But can't seem to find decent documentation on it.

Long story short:

1. How do I save my current or any other report design to a trdx file
2. How would I apply that trdx file to the certificate at run time?
        DefaultCertificate applicantCertificate = new DefaultCertificate();
        applicantCertificate.DataSource = application.GetCertificateDetails(applicantID, applicationYear);
 
//something to do the following?
applicantCertificate.Template = "location of template trdx file";

Thanks.
IvanY
Telerik team
 answered on 21 Jun 2012
1 answer
136 views
If I have a WPF smart client with Server that contain all data. 
I want to add reports to the WPF client. 
What are the best practice for that? 
What data source should  I have? 
There is a lot of data, should I retrieve all rows to client?! or can I generate the report on server with some paging? 

Thanks. 

Peter
Telerik team
 answered on 21 Jun 2012
0 answers
76 views
Dear All,

    I have two questions:

    1st: End-user accessability
    ======
    I want to know if it is possible by any mean to give the end-user the ability to define the sort criteria to the generated report or not.
    I will appreciate any solution, as I couldn't find any by myself...
    
    2nd: Localization
    ======
    a. How should I localize the report contents
    b. I have a global switching of the language and it is working fine, except for the reportviewer ...I need to reload the reportviewer itself 
    to take the effect of the language setting changes, is there any way to implement this as the normal .resx files ? 
    as for normal .resx  files I can do this 
    
((ResourceWrapper)Application.Current.Resources["ResourceWrapper"]).ScreensRes = new ScreensRes();

    after changing the culture .

Best regards
Ubuntu
Top achievements
Rank 1
 asked on 21 Jun 2012
3 answers
134 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
975 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
216 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
76 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
164 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
186 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
205 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
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?