Telerik Forums
Reporting Forum
2 answers
315 views
Hello,

   I have a report and viewed in silverlight, my problem is how can I change the margin at runtime? Because the user has the option to change the margin anytime.

  Thank you.
YARARMAN
Top achievements
Rank 1
 answered on 13 Dec 2012
1 answer
318 views
I have a Table used to display an Address.  Not every user fills in every field and at diplay time i'd like to just remove the Rows that have no data.

I did this so far

var recipientContact = from ro in recipientOrg.AsEnumerable()
                        join rc in _db.RecipientContacts
                       on ro.RecipientOrganizationID equals rc.RecipientOrganizationID
                        select new
                          {
                              OrgName = rc.RecipientOrganization.Name,
                               ContactName = rc.FirstName + " " + rc.Surname,
                               Address1 = rc.Address1,
                               Address2 = rc.Address2,
                               City = rc.City.CityName,
                               Province = rc.Province.NameEnglish,
                               Country = rc.Country.CountryName,
                               PostalCode = rc.PostalCode,
                               Fax = ro.FaxNumber,
                               Phone = ro.PhoneNumber
                        };
                table5.DataSource = recipientContact.ToList();
 
        private void table5_ItemDataBound(object sender, EventArgs eventArgs)
        {
 
 
 
        }

This works fine, what I was thinking was that I could, in the databound event, loop through the Rows and see which, if any had no contents and jest Delete It?

Not sure where to start there though.
Steve
Telerik team
 answered on 13 Dec 2012
2 answers
260 views
Hi,

I have applied conditional formatting to controls. On a specific condition I am setting Visible=False for a textbox1. When this condition is true textbox1 gets invisible, but the textbox2 which is positioned just after textbox1 is shifted to left and takes the position of textbox1.

I gone through following link and found that this problem was in 2009 Q3 release. Is it still persist? I am using version 5.0.11.316 of Telerik Reporting.

Please suggest me some solution.
YARARMAN
Top achievements
Rank 1
 answered on 13 Dec 2012
1 answer
102 views
I have gone through http://www.telerik.com/help/reporting/entitydatasource.html but am completely stummped. My code generates no errors but all of the reports are coming up blank.

Here is my code:

XAML Element:
<telerik:ReportViewer Name="telerikPersonReport" Height="275" />


LoadTelericReport() is called after the data source and page has been initialized.
public void LoadTelericReport()
{
    Telerik.Reporting.EntityDataSource entityDataSource = new Telerik.Reporting.EntityDataSource();
 
    ReportEntity objectContext = new ReportEntity();
 
    entityDataSource.ObjectContext = objectContext;
    entityDataSource.ObjectContextMember = "Events";
 
    Telerik.Reporting.Report report = new Telerik.Reporting.Report();
    report.DataSource = entityDataSource;
 
    Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();
    reportSource.ReportDocument = report;
 
    telerikPersonReport.ReportSource = reportSource;
    telerikPersonReport.RefreshReport();
}

The second part is the class that pulls from the Entity Framework:

public class ReportEntity
    {
 
        Attendance_Tracker ThisData = new Attendance_Tracker();
 
        public ReportEntity()
        {
            ThisData.Attendances.Load();
            ThisData.Attendees.Load();
            ThisData.Events.Load();
            ThisData.Sessions.Load();
        }
 
        public List<EventType> Events()
        {
            var AllEvents = from e in ThisData.Events.Local
                            select new EventType()
                            {
                                EventID = e.EventID,
                                EventName = e.EventName,
                                StartDate = e.StartDate,
                                EndDate = e.EndDate,
                                count = (from a in ThisData.Attendances.Local
                                         where a.Session.Event == e
                                         select a).Count()
                            };
            return AllEvents.ToList();
        }
}

Both sections are run fully, and AllEvents.ToList() is returning a full List<EventType> (if this matters it isn't called until after it has been bound to telericPersonReport.

As far as I can tell the WPF reporting front end just isn't displaying the List<EventType>, but it also isn't throwing an errors which seems strange. Is there something clearly wrong with my code, am I just completely off on how this works?

Thank you all for any directions you can point me in!
Siva
Top achievements
Rank 1
 answered on 12 Dec 2012
1 answer
776 views
hi 
bueno mi problema es que intento enviarle a un ReportViewer  algunos parametros por programacion y no me deja siempre sale igual
utilizo el siquiente codigo con el cual segun la documentacion estaria correcto pero  aun que no genera un  error tampoco trae la información
si alguien me puede ayudar  
 Dim Report As New Report1 

 Report.ReportParameters("idempresa").Value = "29"
        Report.ReportParameters("idsucursal").Value = "34"
        Report.ReportParameters("idfactura").Value = "12"
 ReportViewer1.RefreshReport()
Steve
Telerik team
 answered on 12 Dec 2012
1 answer
68 views

Good morning,

I have successfully been able to add a built report to a Windows Form, but I am having a little trouble getting it to work on a webpage.

I have added the Telerik Report to the webpage, added the Report Source, but I am getting the error

"The source of the report definition has not been specified."

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
        instanceReportSource.ReportDocument = new Telerik.Reporting.Examples.CSharp.ListBoundReport();
        this.ReportViewer1.ReportSource = instanceReportSource;
    }
}

I forgot that I needed to add the code above. However, once I added that it in, the namespace 'Examples' does not exist in the 'Telerik.Reporting' namespace.

Is there another reference I need to add/change? I am using the Q3 2012 Reporting version.

Thanks!
Steve
Telerik team
 answered on 12 Dec 2012
1 answer
113 views
I'm sorry if this is a repeated post, but searching through the forums I don't see any recent answers.

I'd like to make a series item clickable from my chart in mvc3 and link to a different page in my application. For example, if I had a bar chart I would like to be able click one of the bars and be taken to a different report page. Does this functionality exist today?
Steve
Telerik team
 answered on 12 Dec 2012
1 answer
127 views
We're having quite a few problems with the Telerik reporting tools. Perhaps these issues are all just something we're doing wrong (and frankly we'd be happy if they were), but we're starting to believe that it's really a series of bugs in the product. This one we refer to internally as "Broken Borders".

Broken Borders
Essentially, all we really want to do is put a border around a report; a simple 1 or 2 pixel solid black line. We can do that and get it to render okay in the preview, but when we add data it suddenly will stop rendering the left and right borders correctly and, depending on how the report was rendered, will sometimes put a bottom border in where it doesn't belong.

I have attached screenshots from within Visual Studio. Unfortunately, I can't attach rendered PDFs or rendered TIFFs, but those are in my support ticket along with the source code for the report definition. If this is caused by something we're doing wrong then please tell us what it is because this happens on all of our reports. If, on the other hand, this is a limitation with the Telerik product then please let us know ASAP so that we can begin evaluating other products and start the refund process.

One work-around that was suggested is to determine the maximum number of detail rows the report could render and "pad" our source data to meet that number. Unfortunately, this work-around isn't acceptable given our situation. Using a row count is nearly impossible if word wrapping (TextWrap=True) is enabled in any of the cells and, in our case, it is.

Greg
Greg
Top achievements
Rank 1
 answered on 12 Dec 2012
0 answers
88 views
Hello,

In older thread (2007) i found it was not supported but was in queue. Is it supported now?

The target is to write a generalize code to set the size and location for all report(s) objects from the report viewer so that i should not set every report indivisually. I want to write a function which could set the size and location of any object in the report.

If It is possible the how?

Waqas Aslam
Waqas
Top achievements
Rank 1
 asked on 12 Dec 2012
4 answers
383 views
Where can I find the setting/property that will adjust the size of the margin/padding between the plot area and the chart object border.  I have included a screen shot of what I am trying to accomplish.
Michael Kniskern
Top achievements
Rank 1
 answered on 11 Dec 2012
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?