Telerik Forums
Reporting Forum
1 answer
99 views
Hello!

We have a SL 4 application.

With the Reporting version I am using (Telerik.Reporting 6.0.12.215), generating a report causes this exception in the Preview:
The service Telerik.Reporting.Design.Interfaces.IRootDesignerPresenter already exists in the service container. Parameter name: serviceType 

I've searched the Telerik forums for such error, and it has been adviced to download latest builds. However, since the latest version of the RadControls (Report Viewer) is SL5, I am unsure which versions to install (advised builds are not available for download at this moment).

What is the version connection between RadControls (specifically ReportViewer control) and Telerik Reporting version? In other words, what are the latest downloadable SL4 build of RadControls and the latest version of Reporting that will work together without problems?

Thanks
Yuliyana
Telerik team
 answered on 10 Apr 2013
6 answers
272 views
Hi,
Earlier we are using Telerik 2008 and we programatically creating lines and adding to Page header. recently we upgraded to 2012 Q2 Telerik reporting and form that time onwards we are not seeing the lines. Please see the code below

if

 

 

(i == 0 || i == 2 || i == 4 || i == 6 || i == 8 || i == 10)

 

{

labelwidthX = 0.1;

labelvalwidthY = 1.4 + 0.4 * (i / 2);

 

 

Shape shape = new Shape();

 

shape.Location =

 

new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(labelvalwidthY + 0.25, Telerik.Reporting.Drawing.UnitType.Inch));

 

shape.ShapeType =

 

new Telerik.Reporting.Drawing.Shapes.LineShape(Telerik.Reporting.Drawing.Shapes.LineDirection.EW);

 

shape.Size =

 

new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(8, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.099921144545078278, Telerik.Reporting.Drawing.UnitType.Inch));

 

shape.Style.BorderStyle.Default = Telerik.Reporting.Drawing.

 

BorderType.None;

 

shape.Style.Font.Bold =

 

true;

 

 

 

this.pageHeader.Items.Add(shape);

 

}
and we did small code change in export to PDF because of new dlls throwing error. here is the code

 

 

 

void ExportToPDF(ReportBook reportToExport)

 

{

InstanceReportSource instanceReportSource =

 

new InstanceReportSource();

 

instanceReportSource.ReportDocument = reportToExport;

ReportProcessor reportProcessor =

 

new ReportProcessor();

 

 

 

//RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null);

 

 

 

 

RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);

 

 

 

string fileName = result.DocumentName + ".pdf";

 

Response.Clear();

Response.ContentType = result.MimeType;

Response.Cache.SetCacheability(HttpCacheability.Private);

Response.Expires = -1;

Response.Buffer =

 

true;

 

Response.AddHeader(

 

"Content-Disposition",

 

 

 

string.Format("inline;FileName=\"{1}\"",

 

 

 

"attachment",

 

fileName));

Response.BinaryWrite(result.DocumentBytes);

Response.End();

}

Ruby
Top achievements
Rank 1
 answered on 09 Apr 2013
14 answers
919 views
Good day,

I'm having a problem with Telerik Reporting Q1 2013 v 7.0.13.220 that I just upgraded to.

I'm getting an error that says 'Telerik.Reporting.Data.Grouping is not defined' for all of my reports. I'm using the Telerik.Web.UI Ajax control set 2013.1.220.40.

I have not changed the reports at all. All I did was upgrade.

Is this a known issue? Should I go back to Q3 2012?

Thanks in advance,
Jonathan
Dennis
Top achievements
Rank 2
 answered on 09 Apr 2013
4 answers
351 views
I am testing the ability to have the same chart (i.e. pie or bar) display summary data per group level.

For example, I want to display the gender percentages by Agency, then by Site, then by Class.  I have created a report with groups on each of these values.  However, the pie charts that I created show the same data on each level.  I have one SQL database datasource that provides the values.  I am using the Report Designer for Reporting Q1 2013

I am new to this and would appreciate any help.

Thanks,
Jennifer
Jennifer
Top achievements
Rank 1
 answered on 09 Apr 2013
1 answer
469 views
By going into the SqlDataSource item in the Toolbox, I can "edit" an existing data source.

However, you select the existing datasource and it provides a blank query. I would like to, from time to time, alter the query. It seems like I have to recreate it. That is not unmanageable, but it would be nice to be able to alter data parameters and preview the impact on the report.

Am I missing something?
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 09 Apr 2013
1 answer
122 views
Hi, is it possible to export/load template files by code as it could be done with  the Report Designer?

My version is 2013 Q1. 

Cheers

Elian
Telerik team
 answered on 09 Apr 2013
1 answer
178 views
Hi,

I have one doubt,

I am using  telerik reporting version 6.1.12.820.
i have one subreport and one main report. subreport to binding the main report. i am using code below,

  Telerik.Reporting.SubReport subReport2 = (Telerik.Reporting.SubReport)poReport.Items.Find("subReport2", true)[0];
  subReport2.ReportSource.DataSource = pMaster;

it will show error, ('Telerik.Reporting.ReportSource' does not contain a definition for 'DataSource' and no extension method 'DataSource' accepting a first argument of type 'Telerik.Reporting.ReportSource' could be found (are you missing a using directive or an assembly reference?).


Advance Thanks

Stef
Telerik team
 answered on 09 Apr 2013
4 answers
92 views
The general-purpose, stand-alone designer allows a user to choose from all of the possible data sources: SQL, Cube, Object, Entity, and OpenAccess.

I've been creating a custom data source which extends ObjectDataSource, and all reports that a user would use with my tools would be based on this component, and no other.

I'd like to see config-file options that allow us to eliminate the default Data Sources from the UI, and replace them with options which we provide. So for example, under <AssemblyReferences> perhaps we could include an assembly that conformed to an API defined by Telerik, which defines all Data Sources. The code in there might do something like this:

[DataSourceExtender]
public void ModifyDesignerDataSources(Context context) {
  DesignerDataSources sources = context.getDataSources();
  sources.clear();
  sources.add("My Source", "myNameSpace.myClassDerivedFromDataSource");
}


With that, my designer users would never see a SQL data source, for example, they'd only see my source(s).

Does this have any merit?

Thanks.
TonyG
Top achievements
Rank 1
 answered on 08 Apr 2013
4 answers
150 views
In Visual Studio, create an ObjectDataSource, go through the wizard, enter parameters for reporting and then for the designer.
To change the reporting parameters, go to the Properties container and you'll see them.
To change the designer parameters, you need to right-click the designer icon, open the context menu to Configure, then go through the wizard to get to the last page.

That's a bit of a hassle. Can the Designer-mode Parameters be added to the Properties page, with "Parameters" re-defined as "Run-time Parameters"?

In code (designer.cs), I don't see where the designer-mode parameters are stored at all. I'd guess this is why they aren't available under Properties. :)

Where is that data stored, and why does this need to be such a mystery?

Thanks.
TonyG
Top achievements
Rank 1
 answered on 08 Apr 2013
1 answer
1.1K+ views
Hello,

I am rendering data dynamically and second page is coming blank. first page is having full data to occupy whole detail section of first page. I gave borders of footer, detail section, report table. but nothing is falling on second page.

But when records are less( up to half full or less than full of detail section of first page), it fits in one page only.

Please help.

Let me know if more info. is required.

Regards,
Manish
Petio Petkov
Telerik team
 answered on 08 Apr 2013
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?