Telerik Forums
Reporting Forum
1 answer
387 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
190 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
725 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
86 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
149 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
58 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
4 answers
140 views
If I start a new project and add a Telerik Report to it, then try and view the Report Wizard, I get the following two message boxes, one after another:

An error occurred while processing this command.

Object reference not set to an instance of an object.


And then:

Object reference not set to an instance of an object.

What is causing this? I can't access the Report Wizard at all.

Petio Petkov
Telerik team
 answered on 20 Jul 2012
5 answers
92 views
Hi,

Nowadays I'm using another trademark of .NET components where I want to implement a specific scenario that I cannot do with them. So, I turned to you to know if with Telerik components can do it or not.

I want to implement Self-Hosted Reporting WCF Service using File Session State Provider using .NET 3.5 SP1 and after reading the documentation I think that is possible but I prefer to confirm!. Can I do this?

Thanks,
Gorka.
Peter
Telerik team
 answered on 20 Jul 2012
2 answers
269 views

Hello,

I am using C# and Asp.NET in the issue described below.

I have a Website which I access to using the following Url: http://localhost:8349.

This Website has the following folder at its root level: Reporting
Reporting folder hosts another folder: Reports
Finally, Reports also hosts a folder: Styles

The Styles folder contains one file called Style.xml. This file is a Stylesheet that I got by exporting the Style set on a previously existing report. Its build action is set to Content and its Copy to Output Directory is set to Do not copy.

Inside the Reports folder, I have a Telerik report called Report1.cs. It has a single textbox with its StyleName property set to a value from within the Style.xml. The report itself has one External StyleSheet that corresponds to the file in the Styles folder. The Kind is set to Relative.

At the root level of my Website I have an aspx page called MyReport.aspx. It contains a single report viewer. In the Page_Load method of the page, I have the following code:

Report1 report = new Report1();
ReportManagementViewer.Report = report;

All namespaces are correctly added.

There is no other files or folders except those created by default by Visual Studio. I am using all default settings for the files, project and the solution as well as Visual Studio.

When I open the report in the designer mode, the style I want is correctly applied. When I run the Website and access to MyReport.aspx (http://localhost:8349/MyReport.aspx), the style is also correctly applied.

Now, in the Reporting folder I create a new aspx Webform called MyReport.aspx. This page also has a single report viewer as its only component and its Page_Load method contains the same code as above. All namespaces are correctly added.

When I open the report in designer mode, my style is still correctly applied. But when I access this new page (http://localhost:8349/Reporting/MyReport.aspx) the style is ignored. In Visual Studio, if I open Report1.Designer.cs and I change the following line:

this.ExternalStyleSheets.Add(new Telerik.Reporting.Drawing.ExternalStyleSheet("Reporting\\Reports\\Styles\\Style.xml"));

to this

this.ExternalStyleSheets.Add(new Telerik.Reporting.Drawing.ExternalStyleSheet("..\\Reporting\\Reports\\Styles\\Style.xml"));

I can correctly see my style applied when I access the report from the second Url. But when I want to access the report from the designer in Visual Studio it crashed with the following error message:

"The service Telerik.Reporting.Design.Interfaces.IRootDesignerPresenter already exists in the service container. Parameter name: serviceType"

If I try to update the same line of code to this:

if (!DesignMode)
{
    this.ExternalStyleSheets.Add(new Telerik.Reporting.Drawing.ExternalStyleSheet("..\\Reporting\\Reports\\Styles\\Style.xml"));
}
else
{
    this.ExternalStyleSheets.Add(new Telerik.Reporting.Drawing.ExternalStyleSheet("Reporting\\Reports\\Styles\\Style.xml"));
}

it crashes with the following error message:

"The designer cannot process the code at line 64: [the whole code above] The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again".

If I run the application and try to access the page hosting my report in the sub-folder, the style is correctly applied.

I've also tried to prefix the path to the Style in the designer.cs with ~ or use the Style as a resource but in both cases it ends up working whether in the designer or in the live application but never for both at the same time.

My question:

How can I access to a report with an External Style Sheet both in the live application and in the designer when the ASPX page hosting the report viewer is not located at the root level of my Website?

Thanks for your help

Additional information:
- Visual Studio 2010 SP1 and .NET 4
- Windows XP SP3. Regional settings; English (United States). Same for the language.
- Version of Telerik Reporting: 6.0.12.215. This is also the version of Telerik reporting used by the original report from which the style has been extracted.
- Browser: Internet Explorer 8.0.6001.18702
- I don't use any external plugin except Telerik Reporting and RadControls for Silverlight (not used in this project). ReSharper is installed on my machine but not activated. No NuGet or other stuffs like that. No customization of any kind in Visual Studio.
Guillaume
Top achievements
Rank 1
 answered on 20 Jul 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?