Telerik Forums
Reporting Forum
3 answers
124 views
Hi,

I have a few reports that require me to call my own assemblies to format some data. For example, I have an extension Method that translates an enumeration to some resource string:

   = MyClass.GetEnumResource(Fields.ItemStatus)

Aditionally, I also need to make comparisons with my own types for formatting purposes. Something like:

 = IIF(Fields.OrderStatus = MyEnumeration.Refused, " n/a", Fields.OrderPrice)

Problem is, any reference to an external assembly or type generates the dreaded "The expression contains object 'xxxx' that is not defined in the current context". I've also tried to Assembly.Load("MyAssembly") in the report construtor, but to no avail...

I'm aware that there is a solution for the standalone report designer, which involves configuring it's XML config file, but I'm running my reports with Report processor. Something like this:

MyReport report = new MyReport ();
report.DataSource = myModelData;
 
ReportProcessor reportProcessor = new ReportProcessor();
InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
 
instanceReportSource.ReportDocument = report ;
 
RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
 
return result.DocumentBytes;

Is it possible to tell the ReportProcessor where to find my assemblies?

Thanks!
Stef
Telerik team
 answered on 20 Dec 2013
3 answers
91 views
Hi guys,
I've got a report, with the Table items inside the section. I use this to show child data.
I use filter expressions on the Tables to only show the relevant child data.

I've having performance issues, and when I trace the SQL I can see that the SqlDataSource is being repopulated for every master record.
Surely this is not correct? But I'm not sure the correct way to configure this?

See screenshot showing how one of my Table objects is configured.

Thanks,

Pat.
Stef
Telerik team
 answered on 20 Dec 2013
3 answers
167 views
Hello,
I have a need to be able to parse the list of Report Parameters from a TRDX report file. Can I do this through the Telerik Reporting API, or should I simply load and parse the TRDX as an XML document?

Thanks!
Kyle Smith
Top achievements
Rank 1
 answered on 20 Dec 2013
6 answers
151 views
Hello,

I'm having an error when trying to export a report to Excel. The error is:

"Attempting  to get range {7,73}{11,1}. Merged=False, Parent=Sheet1[0], that intersects with an already merged range."

What is the meaning of this? Export to other format work fine.

Thank you for your help.
LM
Marek
Top achievements
Rank 1
 answered on 20 Dec 2013
12 answers
475 views
I am just getting started with Telerik Reporting.  I installed the Q2 2012 version and added a report to my project.  First,the Report Wizard did not start when I added the report.  I had to start it from the Telerik |Reporting menu.

Second, I attempted to add a DataSource for the report and got to the "Create New Data Source" dialog box.  That dialog instructs the user to, "Select the desired data source type from the list below then specify a unique nam for the new data source component to create."  I have attached a screen shot of that dialog box to this post.

The problem is that no data source types are listed in this dialog box.  Any ideas?
David
Top achievements
Rank 1
 answered on 19 Dec 2013
1 answer
155 views
This is more of an FYI learned with VS 2013 and Reporting Q3 2013. 

When the web.config has the debug flag set to true, Reporting wouldn't render in the browser because VS is adding this into the pages which breaks the Telerik js parser. 

<!-- Visual Studio Browser Link -->
<script type="application/json" id="__browserLink_initializationData">
    {"appName":"Chrome"}
</script>
<script type="text/javascript" src="http://localhost:59901/dba793e767684166b11416be8550cb2a/browserLink" async="async"></script>
<!-- End Browser Link -->

This section of the ReportViewer-7.2.13.1016.JS code that it's hitting trying to load and parse the report page in an MVC webapp.
 
beginGetPage: function(pageNo) {
                   throwIfNotInitialized();
                   $.when(loadAsync()).then(function() {
                       onBeginLoadPage(pageNo);
                       return getPageAsync(pageNo);
                   }).done(function(info) {
                       onPageLoadComplete(pageNo, info);
                   }).fail(function(xhr, status, error) {
                       onError(formatXhrError(xhr, status, error));

The error message is "Unexpected Token" from the VS injected block

To fix this you have to turn off vs:EnableBrowserLink in the Web.config 
<add key="vs:EnableBrowserLink" value="false"/>
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

I see this was also reported as a problem with the Rad controls too. 
http://www.telerik.com/community/forums/aspnet-ajax/grid/browserlink-in-visual-studio-2013-breaks-rendering.aspx 

I'm not relying on VS Browser Link, but just wanted to put this information out there for other's that have a problem.

Stef
Telerik team
 answered on 19 Dec 2013
4 answers
850 views
Hi, 

We are using the new PIE Graph (polar), and we are wondering if there is a property that helps control the sort order of the Legend items? 
If you see the attached image you can see how they aren't sorted by Name of the item, but are actually sorted by the values they hold behind them. I can see how that might be the default because you want to a PIE graph to be ordered by low to high, but we want the legend to be alpha sorted. The other hope with this is we can control which color is tied to which item for constancy of reporting.

In the old Charts you would have to build the Legend manually to get this, but is there some other way to do this with Graphs?

Thank you

NerdBrick
Top achievements
Rank 1
 answered on 19 Dec 2013
5 answers
755 views
I have small issue with HTM5 Report Viewer.
1. On first start of application there is significant delay between showing report interface and starting loading report (when message "Loading report..." is showing). For a long time there is just empty space with no message, so user can be confused if anything is working or loading. I tried use ready parameter, but it is occurring too fast so I can not use it for custom loading icon.

Is there any way to display some loading icon or text during initialization, before "loading report.." is shown?

Regards
Marcin
Stef
Telerik team
 answered on 18 Dec 2013
1 answer
111 views
Hi

Is it possible to set one mvc application to act as report server( access reports on this app from another app), for html5 report viewer,

I use azure website for my app and export to pdf does not work( GDI+ issues), but it works on CloudServices(Web Roles), so my plan is to set up web role just for reports and leave main site on azure websites 

THX
Stef
Telerik team
 answered on 18 Dec 2013
1 answer
258 views
I am using following code to Create New cell for Detail Header

            using (var cell = new TextBox())
            {
                cell.Value = value.GetRenderingFormat();
                cell.StyleName = styleSheetKey.ToString();
                cell.Size = new SizeU(GetColumnWidth(isFirstColumn), GetRowHeight());
                cell.TextWrap = true;
                cell.Multiline = true;
                cell.KeepTogether = false;
                cell.CanGrow = true;
                return cell;
            }
        }

But the result is strange... for specific width that can adjust in 3 line works fine but not for 4 line. At the same time the column beside this one is working fine. The diff. between content is only one character is getting wrap in case of invalid printing.

Padding of the cell in stylesheet is as follwoing:

  <BorderStyle Bottom="Solid" Top="Solid"/>
      <BorderColor Default="Gray" />
      <BorderWidth Bottom="0.5pt" Top="0.5pt"/>
      <Font Name="Arial" Size="8pt" Bold="True" />
      <Padding Left="0.19cm" Right="0.2"/>

Please see attached screens.
Stef
Telerik team
 answered on 17 Dec 2013
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?