Telerik Forums
Reporting Forum
10 answers
531 views
Hi,

I am using telerik for reporting in my web application. I have 2 projects
1. ReportLibrary
2. Web application

I have my connection string in web.config file of my web application project.
As I have used reporing wizard to create my reports.....it saved new connection string in app.config file.
I want to use the same connection string which is there in the web.config file.

So How do we do that?
any answer would be appreciated.
Peter
Telerik team
 answered on 17 Aug 2012
2 answers
111 views
I have been using Reporting Q2 2011 in VS 2010 and am wanting upgrade to the newest version. Previously I would download the msi, install it and VS would ask if I wanted to upgrade.

This time I needed to use the TelerikControlPanel to get the version installed. However, VS did not offer to auto upgrade and when I selected the upgrade wizard from VS I got the error message "There are no references to upgrade in the current solution!"

I found the instructions for the manual upgrade here http://www.telerik.com/support/kb/reporting/general/upgrading-to-a-newer-version-of-telerik-reporting.aspx but before proceeding want to see if I was missing something obvious.

Thanks,

Matthew
Tomica
Top achievements
Rank 2
 answered on 17 Aug 2012
2 answers
235 views
Hi... I'm pretty new to reporting and I need some help solving a problem..

Firstly, my datasource is a collection of items returned from a web service.  The items can be parents of other items.  I need to create a report that shows all items where IsKey is true.  Then, for each item below that, I need to show the children.  The problem is that since each child can in turn have children, the report needs to be recursive.  My subreport has a parameter and filter on the ID.  My first idea was to add a reference to the same subreport but it says I can't because of circular references.  Is there a way to do this?

Here is an example class

pubic class foo
{
    public Guid ID;
    public String Name;
    public Boolean IsKey;
     
    public List<foo> Children;
}

My report needs to look something like this (where the level can be infinite):

Report Name

--------------



Item.Name
---Item1.Child1.Name
   ---Item1.Child1.Child1.Name
       ---Item1.Child2.Name
       ---Item1.Child3.Name

---Item2.Name
Barry
Top achievements
Rank 1
 answered on 16 Aug 2012
1 answer
85 views
My report runs fine in the viewer and you can still export it from the viewer, but programatically exporting the report now fails after going from 2012 Q1 to Q2 (6.0.12.215 to 6.1.12.611).

Code:
Telerik.Reporting.Report rpt = new TED.Web.Defender.DReport { DataSource = reportData };
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = rpt;
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);

Error:

{"Object reference not set to an instance of an object."} 

Stack trace:

   at Telerik.Reporting.Processing.ExternalStyleSheetAdapter.Fill(ICollection`1 styleRules)
   at Telerik.Reporting.Processing.Report.LoadExternalStyleRules()
   at Telerik.Reporting.Processing.Report.InitializeItem()
   at Telerik.Reporting.Processing.ItemFactory.CreateItem(Object itemDef)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, IDictionary processingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
   at Defender_DefenderReporting.ExportReport() in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 423
   at Defender_DefenderReporting.cmdExportReport_Click(Object sender, EventArgs e) in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 466
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Peter
Telerik team
 answered on 16 Aug 2012
1 answer
295 views
I have a fairly simple scenario that hopefully someone else has encountered and knows how to solve.

In a report, I have a pretty normal table of fields that show information about a tutoring session.  Under this, I have a field that shows a note that was entered by the session's teacher, and then under that I have two more subreports.

If the note is empty, I make the textbox invisible, however the location of the other controls (i.e. the sub reports below the note field) is not relative / dynamic, so when the note field is not visible, there's a whitespace gap in its place that I would like to get rid of.

Is there a way, without having to programmatically alter the location of every other control on the report, to accomplish what I want?

Thanks!
IvanY
Telerik team
 answered on 15 Aug 2012
1 answer
116 views
Hi,

I have a subreport within a table row to display subrecords of the current row (see image1). The problem is that the row does not grow with the contents of the subreport. Is this possible?

Thanks in advance
IvanY
Telerik team
 answered on 15 Aug 2012
1 answer
307 views
I apologize if I put this in the wrong place or if it has been answered already. ;-)
I have this error:
  • An error occurred during local report processing.
    • The definition of the report 'Reports\RentalPriceByJobAll.rdlc' is invalid.
      • The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.
Visual Studio 2010, MSSQL 2008R2 but original database was developed with 2005. Report Viewer 10.0.0.0
Site server - Windows 2k3
 Let me know if you need more info. 

And thank you in advance!

Erica
Peter
Telerik team
 answered on 15 Aug 2012
1 answer
61 views
I appreciate that you can catch an error raised by a report in a viewer but can you catch an error raised by a report within a reportbook displayed in a viewer?

Paul
Top achievements
Rank 1
 answered on 14 Aug 2012
1 answer
216 views
Hello All,

We have a bunch of reports that we export as PDF and they work well.

We export one of those reports to Excel and when we open the file in Excel is informs us there was an error

Repaired Records: Format from /xl/styles.xml part (Styles)

The report is not complex, but it does have a graphic on the top of the page.

any suggestions ?

thanks
Mark


IvanY
Telerik team
 answered on 14 Aug 2012
1 answer
84 views
We have a text box in a report that stores an address. It displays properly in Report Viewer but when it exports to a PDF it no longer has the third line of the address.

Any sugestions would be appreciated. Thanks.

Erin
IvanY
Telerik team
 answered on 14 Aug 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?