Telerik Forums
Reporting Forum
1 answer
380 views
There is documentation on how to program a Graph (http://www.telerik.com/help/reporting/graphhowtocreateprogrammaticallygraph.html), but I can't find any to programmatically create a Telerik Report.- How do you do this?

I have tried this, but am not sure if I am on the right track?
Following the Graph's tutorial, what Telerik.Reporting.Report() properties must I set, other than 'Name'?


    public partial class Report1 : Telerik.Reporting.Report
    {
        public Report1()
        {
            //InitializeComponent();  //Not used, as not using Designer...right??
 
            //Set up the datasource:
            Telerik.Reporting.SqlDataSource sqlDataSource = new Telerik.Reporting.SqlDataSource();
            sqlDataSource.ProviderName = "System.Data.SqlClient";
            sqlDataSource.ConnectionString = "Data Source=...";
            sqlDataSource.SelectCommand = "SELECT...";
 
            //Instantiate report:
            var report = new Telerik.Reporting.Report();
            report.Name = "theReport"; //What other properties must I set??
             
            //Set the data item's DataSource property to the SQL datasource:
            report.DataSource = sqlDataSource;
 
            //Some parameters:
            sqlDataSource.Parameters.Add("@Fields.Name", System.Data.DbType.String, "Blade");
 
            //Export to PDF:
            exportToPDF(report);
             
           }
}
Squall
Top achievements
Rank 1
 answered on 06 Aug 2013
2 answers
870 views
I'm working on a report where I am grouping items together in Panels so that I can correctly dock elements to achieve the right layout.  I have the individual items set to CanShrink = true and CanGrow = true, however the Panels seem to remain the same size.

Is there a way to autosize Panels to their contents?
Daniel Mettler
Top achievements
Rank 2
Iron
 answered on 06 Aug 2013
2 answers
1.5K+ views
Hello,

I have to print a barcode in a little label! 37mm with... value lenght is 14... Appears error "Barcode lenght 14 is too large to fit" in report designer!

Is possible to adjust some size properties??

I know that is possible print this barcode in this label, because I do it this programing directly in ZPL (Programing Language)
(attached image)

Any idea or solutions?

Thanks in advanced

Jordi
Jordi
Top achievements
Rank 1
 answered on 06 Aug 2013
2 answers
436 views
I have the following scenario:

in one line I have, textbox1, textbox2, and textbox3

textbox2 will always be the separator ">" (constant width)

textbox1 and textbox3 will come from a data source, given that I set up the width of textbox1 and textbox3 as a fixed value with the
mouse in design mode. There will always be empty spaces (when text is shorter) or text cut out (when text is longer), texbox1 is
left justified, textbox3 is right justified. I would like avoid empty spaces in between and put the nicely text on the report whatever the value of the data is. This implies setting the width of textbox1 and textbox3 dynamically to account for the amount of text in the incoming data. and probably also changing the location X value of the text so that text appears one next to the other ( I would like to avoid empty spaces as much as possible)

regards,
Wadigzon
Top achievements
Rank 1
 answered on 05 Aug 2013
1 answer
152 views
Any solutions to split one big report into X  reports with 100 pages?

The big report could contain a couple of sub-reports, we do need the relationship between master report and sub-report, for example, we need to match userID from matser report to locate data in sub-report.


Questions: 
1. how do we count report pages while rending reports?
2. do we have a way to calculate report size or to detect memory consumption before we catch "run out of memory issue" ?


The aim is to improve big report performance and "out of memory bug which throw by Telerik reporting engine" in our program.

Please advise me on above questions?  I am able to provide further information if required.

Thank you
Peter
Telerik team
 answered on 05 Aug 2013
1 answer
49 views
hello everyone,

Displaying reports by fine tuning layout on web is okay at the moment. 

But we found that report layout is not what we expected. tables and graphs cannot keep together, I mean each page has wide blank area in PDF. We didn't set up any page breaking. 

Please let me know how can we solve this issue?

Thanks 

Alex

 
Peter
Telerik team
 answered on 05 Aug 2013
1 answer
61 views
Based on your email about the new EF support, I am evaluating Telerik Reporting tool Q2 2013.1 Trial version.

I created a Web Form project. Added an EF model and then added the reporting item. I am going thru the wizard and thought I got hung up (see attachment) but eventually it did advance after several attempts. When I clicked on the entityDataSource1 and Finish button, it was busy for a minute and then stopped being busy and re-enabled the Finish button. It eventually did advance to the next page.

Does it look like I am on the right track? I will have to check for some demos/tutorials.

Thanks,
Gary Davis
IvanY
Telerik team
 answered on 05 Aug 2013
9 answers
314 views

I've downloaded the latest (v6.2) trial version of Telerik Reporting but cannot figure out how to hook it up to my Entity Framework model.

I've added an EntityDataSource to the designer but this requires a typeof(ObjectContext)which I don't have.

Looking at the example code from the Telerik website it appears I might be able to cast from DbContext to ObjectContext at runtime but this does not (that I can see) enable me to build a report at design time.

Is it possible to get Telerik Reporting to work with Entity Framework 5?

Peter
Telerik team
 answered on 05 Aug 2013
1 answer
167 views
Hi All,

I'm working on an ASP.NET MVC 4 app. Telerik Reporting has been chosen as the Tools of report generation. It's been a couple of days am challenging to generate a report. Here is the scenario:

There is a ReportModel class providing required properties to bind to the report.

public class NewReportModel
    {
        public string ReprotTitle { get; set; }
        public List<Product> Products { get; set; }
        public double ReportSum { get; set; }
    }
 
  public class Product
    {
        public string Name { get; set; }
        public double Price { get; set; }
        
    }


As shown above, there is a Generic List Property of Property which must be displayed in the details section with pagination, thus I must use a TextBox control as Table does not support pagination. (According to what I have gained from surfing the web and Telerik Blogs).

The ReportTitle prop should also shown at the top of every page, and ReportSum at the bottom of every page of the report.

On the other hand, I apply an ObjecctDataSource and its DataMember returns an instance of the NewReportModel class. The Report Designer DataSource is bound to the mentioned ObjectDataSource. Up to here, I can have the ReportTitle and ReportSum props shown on the Report. 

The problem is that, How Can I have list of products displayed on the report viewer with pagination? 

I tried to use table and bind its DataSource to the List<Product> and so Bind the table TextBox expression to "=Fields.Name". But this is not what needed as it brings no pagination. I also tried to use SubReport but again no pagination.

I explicitly mean HTML pagination, The ReportViewer control pagination and not the Export PDF pagination.

How can I come over this problem? 

Thanks in advance,
Ali,
Ali
Top achievements
Rank 1
 answered on 04 Aug 2013
10 answers
302 views
I have a pie chart and want to show the amount of applicants for each test.  Right now the applicant count appears in both the legend and near the pie slices.  I'm not sure how to make the applicant # appear at the the pie slices and have the test name appear in the legend.  Know how I can do this?

i.e. If I set DataYColumn to "APPLICANTS", then that data appears next to the pie slices.  How can I now display the test type in the legend for each of those slices?  All I see in the legend is "item1, item2, item3".
AbdulKareem
Top achievements
Rank 1
 answered on 04 Aug 2013
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?