Telerik Forums
Reporting Forum
3 answers
113 views
Hi there, I have a situation with ReportViewer with Implicit Styles (Windows8Touch). When I run my project an error is shown:

An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll. Additional information: 'root' name cannot be found in the name scope of 'System.Windows.Controls.Grid'.

So, viewing the details of the error I found this situation in the InnerException:
Cannot load 'DocumentFormat.OpenXml'...

I added the library in my project and the following setting in App.config:
<dependentAssembly>
    <assemblyIdentity name="DocumentFormat.OpenXml" culture="neutral" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2.5.5631.0"/>
</dependentAssembly>
But the first error is shown without InnerException. With any other Implicit Style (Office2013, Windows 7, etc) works perfectly.

Is there a problem with Windows8Touch XAML definition in Implicit Styles?
Nasko
Telerik team
 answered on 01 May 2014
1 answer
140 views
Hi,

I'm relatively new to Telerik reporting but having a strange problem with some reports I have created.

I created a report based on an object data source that I am returning from a WCF RIA service and the report worked well. I then started to make some amendments to it, and one amendment was to include another object data source that returns a list from the same WCF RIA service to use as parameter lookup values.

Now when I run the report I get a strange message as follows:
An error has occurred while processing Report 'StatisticsReport': An error occurred while invoking data retrieval method. ------------- InnerException ------------- Exception has been thrown by the target of an invocation. ------------- InnerException ------------- An error occurred while executing the command definition. See the inner exception for details. ------------- InnerException ------------- There is already an open DataReader associated with this Command which must be closed first.

The first odd thing is that I also added another report which does exactly the same thing (2 object data sources, 1 for the report data source and another for the parameter lookup) and it works fine. The report data source object is different, but the lookup one is the same.

The second odd thing is that both reports run fine when I run it locally (VS 2013 with SQL Express 2012) but I'm getting the issue when I publish the site to Azure. The original report was definitely working on Azure the first time I published it, but now it doesn't and the second report works fine both locally and on Azure.

Any ideas?

Thanks,
Richard
Stef
Telerik team
 answered on 01 May 2014
3 answers
186 views
I need a report designer that i can embed into my web (asp.net MVC) application.  Does telerik reporting have a suitable designer.  Silverlight is fine.
Nasko
Telerik team
 answered on 01 May 2014
2 answers
124 views
I have a report (myReport) built in a library class. In my web application, I am using a report viewer (ReportViewer1) with the reportsource set to: "ReportLibrary.MyReport, ReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null". This report has three (3) parameters. 

I have failed in many attempts to set those parameters in the reportViewer using C#. Can anyone help?

Tom
Tom
Top achievements
Rank 1
 answered on 01 May 2014
2 answers
49 views
When I expand a group into details, is it supposed to rerun the entire data request to the datasource? Also it takes an extremely long time when expanding sections.
Nasko
Telerik team
 answered on 01 May 2014
1 answer
322 views
I am creating a report that is basically a business letter.  I load the body of the letter from a database.  It is text with embedded variables, like the client’s name and address.  I currently have this working where I replace the variables in the body with the corresponding data in a class, but I thought it would be nice to let the report generator do that for me.

So I would like to have the body use the same expressions as the reports do.  So a body might look like this: “This is the body of the letter Mr. {Fields.Lastname}.”  Of course, I don’t know what the body actually is until the user runs the report.

So I would need to access the textbox that the body would appear in, set it’s value to the body text, programmatically setup a datasource with the data to be used to evaluate the expressions, the somehow data bind it so the expressions in the body are evaluated against the new data source.

Is this possible and if so are there some examples or documentation that would help?
Nasko
Telerik team
 answered on 01 May 2014
2 answers
692 views
Hi I am using 2 tables in a single report. Under this one of the Table(Table 2 as per example I attached) is extended more than the width of the report. So while exporting as PDF this table shows its remaining data in a new page. But I have another table (Table1 as per example I attached) the width does not exceeds the single page but it creates a new page and show nothing(Blank page) due to the extended Table2 Width. 

My question is How to remove this blank pages while exporting?
Ivan Hristov
Telerik team
 answered on 01 May 2014
1 answer
66 views
I have a method that sends a report out to the browser in excel format. It works fine if I pass it a report but when I pass it a report book I get the error "Excel found unreadable Content in 'MyReportName.xls'. Do you want to recover the contents of this workbook? If you trust the source of the workbook click Yes. When I click Yes it generates the workbook with all of the tabs in place the only issue is the first tab has the correct name and the remaining tabs are named Recovered_Sheet1, Recovered_Sheet2 ..... Recovered_Sheet10.
private void WriteToExcel(IReportDocument report)
{
    ReportProcessor reportProcessor = new ReportProcessor();
    RenderingResult result = reportProcessor.RenderReport("xls", report, null);
 
    Response.Clear();
    Response.ContentType = result.MimeType;
    Response.Cache.SetCacheability(HttpCacheability.Private);
    Response.Expires = -1;
    Response.Buffer = true;
 
    Response.AddHeader("Content-Disposition",
                       string.Format("attachment;FileName=\"{0}.xls\"", result.DocumentName));
 
    Response.BinaryWrite(result.DocumentBytes);
    Response.End();
}

Thanks in advance for any and all help!
Stef
Telerik team
 answered on 01 May 2014
1 answer
261 views
Hello.  In Telerik Reporting, when I edit in the design file and save, I've recently started getting this error often:  Code generation for property 'Value' (and sometimes 'StyleName') failed.  Object reference not set to an instance of an object.

I'd made considerable changes to a designer file yesterday, and when I did a Get Latest in VS, it forced me to merge manually to resolve some conflicts.  As I was comparing the server version to my version of the designer.cs file, I found some 20+ controls were missing this line:  this.SomeControl.Value = "";   And, one this.SomeControl.StyleName = "";  I have no idea why all those would be missing???  Any idea what I could be doing to cause that?
Nasko
Telerik team
 answered on 30 Apr 2014
2 answers
137 views
Hello. I've only found a few threads that deal with my question but none provided an answer. I need the ability to change the grouping on a report. Is this possible? Is it efficient? Are there any examples that I can download? I've tried the example projects from this thread but they are incomplete ( no report(s) ).

Thanks for any advice!
Peter
Telerik team
 answered on 30 Apr 2014
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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?