Telerik Forums
Reporting Forum
3 answers
1.1K+ views
Is there a way to default to have all the items selected when you use a multivalue report parameter in a filter?

i.e. I have a report parameter that can be any of the 50 states. By default I would like the filter to have all 50 selected when the report runs.
Thanks
Steve
Telerik team
 answered on 25 Jul 2012
4 answers
123 views
Hi to all,
I'm trying telerik reporting to understand if it's a solution for my customers.

I attached ad image document example for my idea. It's a "typical italian document" example an invoice.
  • Section A: the information of invoice, company information, must show on every page (done it's ok)
  • Section B: lines of invoice, if the lines are more than the capacity of the printer page will be on the next page (done it's ok)
  • Section C: additional information of invoice (VAT Informations, Bank Account etc.), it needs to show this section at bottom of page, I intend at bottom of the paper. This means that if the lines end up on the next page, it has to align the section C to the foot of the second page. You can do this?
    I'm trying working with sub-report and anchor, but the problem is that the behavior is not configurable in the section, but only its contents. I can not handle the height of the section dynamically, right?
Peter Pyc
Top achievements
Rank 1
 answered on 25 Jul 2012
1 answer
126 views
Hello,

I'm trying to find a dynamic way to Generate reports. So say I have:

Report 1
Report 2
Report 3

Typically you would create a report like this in my web app. 
namespace ReportingSuite.Reports
{
    public partial class AgentPPLReport : OLAPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Ruid = "18e1bcca-b432-47a2-90ed-f982ac6225bb";
            if (ValidateReport(Ruid))
            {
                IReportDocument r = null;
                r = new AgentPPL();
                ReportViewer1.Report = r;
                ReportViewer1.RefreshReport();
            }
        }
    }
}


But I hate re-writing similar pieces of code.  It's bad practice repeating code.
And foreach report there everything is going to be the same except the the line where you initialize the report.

What I would like to do instead of writing a new page for each separate report is have one generic page that you send a report type to.  I want to say there is some way around this using templates in C# but answer is eluding me.
Ed Lance
Top achievements
Rank 1
 answered on 24 Jul 2012
1 answer
397 views
Hi,
I've juste upgraded one of my projects to Q2 2012 telerik reporting. I've got some difficulties now to correct obsolete statements.
Here is the context :
I have reports created who inherits from Report :
public partial class MyUsers: Telerik.Reporting.Report
{
}
I can't figure out how to resolve those warnings :
Telerik.Reporting.Processing.PictureBox isActif = (Telerik.Reporting.Processing.PictureBox)section.ChildElements.Find("IsActif", true)[0];
 
Warning 21  'Telerik.Reporting.Processing.ProcessingElement.ChildElements' is obsolete: 'The Telerik.Reporting.Processing.ProcessingElement.ChildElements property is now obsolete. Use Telerik.Reporting.Processing.ElementTreeHelper.GetChildElements() method instead.'  C:\Code_Source\.REPORTING
Ant this one :
report = new REPORTING.MyUsers();
 
Warning 26  'Telerik.Reporting.Report.implicit operator Telerik.Reporting.ReportSource(Telerik.Reporting.Report)' is obsolete: 'The implicit Report to ReportSource conversion is obsolete. Please create InstanceReportSource instead.'    C:\Code_Source\

Is there anybody there who could help me or give me hints ?
IvanY
Telerik team
 answered on 24 Jul 2012
1 answer
205 views
Hi,

I am using Telerik Reporting for my Report. Now I am facing one issue. I use Pie chart to display my data, Here I need to display my percentage in Data Label column. In designer I have value with %. But in preview my labels append by the item labels. can you please check my attached image. And also I need to point the label in the chart. (label pointing explained in attached image) Is it possible?
Steve
Telerik team
 answered on 24 Jul 2012
3 answers
744 views
I have generate column dynamically in detail sectin of report for this i use cross tab but the problem is that in detail section complete cross tab data is showing means for one row of report multiple rows of cross tab is displaying , i just want show one row of cross tab for each each row of report.
Is there any way to dynamically changing data source of cross tab?so every row of report i have different cross tab data source?
Is there  any other control that will meet my requirement ?
Steve
Telerik team
 answered on 24 Jul 2012
12 answers
1.5K+ views
Hi,
I'm new to telerik, i have a method which return a List of associations and its members, i would like to display this information in a report, i tired to bind the firstName field value of a member to a textbox  and in the report3 design, i assigned the FirstName textbox value to "=Fields.Members[0].FirstName", the method  FindAllAssociations return a list of AssociationModel which has a "Members" property (of type list<AssociationModel>) .
So how to set the FirstName textbox value ?
var reportingModule1 = ReportingModule.CreateModule()
Report report = 
new Report3();
var objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource.DataSource = reportingModule1;
objectDataSource.DataMember = "FindAllAssociations";
report.DataSource = objectDataSource;
ReportViewer1.Report = report;


And thank you in advance. 
Peter
Telerik team
 answered on 20 Jul 2012
1 answer
88 views

Hello,

I have tried your silverlight demo :  "Invoice implemented with Master-Detail reports"
When I click the print button, nothing prints.
When I click the print button again, sometimes your app crashes...

My browser's installed SL version is : 

Installed version: 5.1.10411.0

I don't even dare downloading free trial controls as i can't waste time trying to use Master-Detail reports !
 
I do need a silverlight printing component (that works perfectely however)
Where can i find such report printing component ?

Regards

Peter
Telerik team
 answered on 20 Jul 2012
1 answer
158 views
In my report I dynamically add textboxes using :
// txt.Name = myString;
detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { txt });
After adding the textbox I need to find it again by it's name held in myString but cant seem to figure it out.
Any Ideas?

The problem I have is that I have a datasource which contains an unknown number of fields apart from 1 which I will refer to as "FieldA".
I Set datasource to null, get my datatable and loop through each column. I then generate a textbox at run time and give it a value and add it to the report. I do this for all fields apart from "FieldA". FieldA has its own textbox so all I have to do is :
this.txtFieldA.Value = "Whatever";

I have noticed that when I run my report only FieldA is properly updated with the correct value. All the other textboxes contain the same information from the first row of the datatable.
I can only assume this is happening because the textbox for FieldA was added at design time and the rest at run time.
My thought is that maybe I should add each text box THEN add a value to them instead of giving each textbox a value then adding it.
Peter
Telerik team
 answered on 20 Jul 2012
1 answer
66 views
Hi,
I updated the version of the report to the 2011 version, but I can not see the design view of some reports, it gives the error: 'Telerik.Reporting.Drawing.Unit can not be converted to type Telerik.Reporting.Drawing.Unit'
Help me pleaseeeeeee
Squall
Top achievements
Rank 1
 answered on 20 Jul 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?