Telerik Forums
Reporting Forum
2 answers
130 views

Hello 

I want to build reports based on ObjectDataSource. As an easy sample, I tried to start with an sample report, based on your video.

In my project, there is a BI-Layer based on EF4/POCO. But when I try to add a Entity Context Object (to populate the List in GetAllProducts()), I get an Error on Report Preview (see Attachment).
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using IW_CCFA_GEKO.Model;
 
namespace IW_CCFA_GEKO.Report.ReportModels
{
    [DataObject]
    public class Products
    {
        protected CCFAGEKOEntities db = new CCFAGEKOEntities();
 
        [DataObjectMethod(DataObjectMethodType.Select)]
        public List<Product> GetAllProducts()
        {
            var products = new List<Product>();
 
            products.Add(new Product() {Name = "Produkt 1", Color = "blau", ListPrice = 2.55, ProductNumber = "654-789"});
            products.Add(new Product() {Name = "Produkt 2", Color = "gelb", ListPrice = 1.20, ProductNumber = "345-768"});
            products.Add(new Product() {Name = "Produkt 3", Color = "rot", ListPrice = 5.0, ProductNumber = "56-334"});
            products.Add(new Product() {Name = "Produkt 4", Color = "grün", ListPrice = 3.9, ProductNumber = "234-159"});
 
            return products;
        }
    }
}

In the same Project, I made a report, directly based on an EntityDataSource, which works, even in Preview. But I need to do some processing in my own Classes before.
What's wrong and how to resolve it?

Thanks, Simon

Mars
Top achievements
Rank 1
 answered on 20 Dec 2012
1 answer
117 views
I have my report's default font set to Times New Roman, 9pt, When I create new conditional formatting on a field, the font is Arial 10.

How can I configure my environment to have a default font for all actions?

Peter
Stef
Telerik team
 answered on 19 Dec 2012
1 answer
190 views
I'm a newbie to reporting, so forgive me for this elementary question.

When designing report, I noticed that sometimes the textBoxes were shifted to the right during preview and debugging. Attached are my report in Designer and its Preview.

In Designer, the Grand Total Textbox (and the textbox next to it) should be only one inch from left margin, but in Preview mode, the textboxes were shifted to far right.

So can anyone tell me what happened and how to fix this? I've tried moving the textboxes around but they are still shifted to far right side of the document.

Thank you.
Steve
Telerik team
 answered on 19 Dec 2012
6 answers
98 views

Hi,

I am using Telerik  Reporting Q2 2011 with Silverlight 4 and I would like to specify the report name in the Save File Dialog. I have already explored other post regarding this issue and found that Report.DocumentName property is used for this purpose but Silverlight 4 Save File Dialog does not have DefaultFileName property therefore it is not possible to specify report name due to the limitation which comes from Silverlight 4.

But now silvleright 5 have this property for Save File Dialog. So, does the latest release (Q 3 2011) of Telerik reporting have this functionality? If not when it will be available?

Adil

Zaheer
Top achievements
Rank 1
 answered on 19 Dec 2012
2 answers
157 views
I have a class which I am attaching to my report using an ObjectDataSource.
In the designer I see that the type of the datasource is set to that of this class

this.objectDataSource1.DataSource = typeof(Acme.Reporting.TrainingRequirements.ListRowGenerator);

How do I get the actual object? The GetDataSource method is hidden by its access level.

 

 

 

Joe
Top achievements
Rank 1
 answered on 19 Dec 2012
3 answers
151 views
Hello, I am trying to use the reportViewer component in my asp.net application. Our requierments are as follows:

  • Need to use trdx files so our clients can create their own reports and upload them through our application.
  • Need to change the datasource to the trdx files at runtime to connect to the proper database based on user.
  • A couple of reports will require drillthrough capabilities and the drillthrough files will also require the datasource to be set at runtime.

I found a sample listed by Erwin in your forum (Change Connection String for Reports designed in the Standalone Designer) to change the connection string at runtime and it is working fine for displaying the reports, however I am wondering how I will be able to change it in the drillthrough report.

Any documentation on changing the connection string at runtime for the drillthrough report would be appreciated.

Regards,

Don Tompkins

Peter
Telerik team
 answered on 18 Dec 2012
1 answer
284 views
Hi
Ive done an invoice report in Silverlight. I want to print 3 copies of the invoice automatically when the user clicks print. Is there a way to do this?

cheers.
Stef
Telerik team
 answered on 18 Dec 2012
26 answers
2.6K+ views
Hi,

Have you experimented with ReportViewer on the ASP.NET MVC framework? I'd really like to leverage both in a project but can't seem to get the report viewer to work. I'm using a Report object as the model for the view and basically showing the ReportViewer as follows:

<asp:Content ContentPlaceHolderID="MainContent" runat="server"
    <form runat="server"
    <
        rvReport.Report = ViewData.Model; 
    %> 
    <telerik:ReportViewer ID="rvReport" runat="server" /> 
    </form> 
</asp:Content> 
The attempt results in an error message:

Report is unavailable or session has expired.

Please, refresh the page.

Igor
Top achievements
Rank 2
 answered on 18 Dec 2012
1 answer
67 views
How do I set the background of a straightforward linear shape to a RadialGradientBrush?
Steve
Telerik team
 answered on 18 Dec 2012
1 answer
173 views
Hi,

I'm trying to create a report which will create an addressbook of families. So the grouping is per family on alfabetical order, and I want to show each member of that family (parents and children) which their date of birth, and email if they have one. So far... these are all items which should be placed in the details section.
However, I do also have their address, street, postal,etc.. which is per family. I can place it in the grouping header or footer, but as there enough space left on the rows, I would like to post in that area. That's also what they are used te be in the old system, which was an excel export and converted to pdf via word.

This would result in a report like this, but I can't find any way to do this, except placing the addresssection in the footer, which would enlarge the whole report. And as it will be printed will cost a lot more paper
Mr. A. Family      10-10-1970                            Streetname 1A
Mrs. B. Family     05-05-1971                            Postalcode
Child 1            11-11-2000                            Place
Child 2            12-12-2005                            House phonenumber
Child 3            10-10-2008
 
 
Mr. X. Family2      10-10-1970                            Streetname 1A
Mrs. Y. Family2     05-05-1971                            Postalcode
Child 1             11-11-2000                            Place
Child 2             12-12-2005                            House phonenumber
Child 3             10-10-2008

Is this possible to render? And if so... how can I make it look like this?

Thanks in advance
Stef
Telerik team
 answered on 18 Dec 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?