Telerik Forums
Reporting Forum
1 answer
223 views
I would like to break my report into reusable "pieces" along the lines of reusable components for code. Ideally, I would like to have a library of report components that are assembled to create the final report. I would like to determine which sub-reports are included in the final report at report generation time based upon data values.

Essentially, this would be a "data-driven" report whose content would vary based upon user entered data on a web page. I would estimate the need for 25-30 report "pieces" per report.

Any insights into whether the Telerik Reporting tool can achieve this requirement appreciated.
IvanY
Telerik team
 answered on 04 Apr 2013
1 answer
47 views
I apologize if this has been brought up before and I missed it.

Setup an ObjectDataSource with run-time and design-time parameters. It all looks good.
Now change the design-time parameters. On closing the wizard, the datasource is queried using the original values.
Go back into the wizard and just progress through to Finish. The datasource is re-queried using the new/current values.

Is anyone else noticing that in the current release? (7.0.13.220)

This is happening to me a lot, in different projects, and over periods of time, reboots, etc.

Thanks.
Elian
Telerik team
 answered on 03 Apr 2013
2 answers
131 views
I have an assembly that provides data to a report.
I have a project with a report that references the assembly.
In the report I set the NeedsDataSource handler to call my assembly to provide the data.

I found that making a change and rebuilding the data assembly does not result in report changes. I was confounded by this because I have a logging mechanism which consistently showed an old version of my code being executed by the Preview functionality. Changes are reflected from the designer. My assembly is called and the log shows the latest version being executed Designer. But Preview always executed the old code.

I did a Clean, then Rebuild. I changed every component to ensure something different was in the object module. I manually deleted the .DLL and .PDB files from the project directories, completely deleted everything under \obj. The rebuild put new files in their place, but Preview always showed the original log data. I closed the solution and re-opened. That didn't help. I changed the assembly reference to Copy Local = False. No joy.

I got another tip that an old assembly was being cached somewhere, because I changed my class.getdata() call in NeedsDataSource to class.getDataNew() and changed the corresponding method in the data assembly. Everything compiled, Intellisense showed it could find the changed method name. But in Preview it said it can't find class.getdata(). Obviously it was holding onto something and not using the code in my report class.

I found that when I completely closed down Visual Studio (2010) and re-opened the report project, that the latest data assembly was being referenced. This confirms there's some caching going on. This could be because the original assembly is reflected-upon and thus stored somewhere, and from then forward it's That assembly which is used rather than the referenced assembly.

It looks like the cache is here:
C:\Users\{user}\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies

You can't delete the directories in there when VS is running. On build (and use by the Designer) a single directory is created for each project (or each assembly in the project). On rebuild after access from the Designer, another directory is created for rebuilt assemblies. The original assembly is still there and can't be deleted. THAT is what's being referenced.

With the above info I did a search in the forum for ProjectAssemblies and found this thread:
http://www.telerik.com/community/forums/reporting/telerik-reporting/degign-view-error.aspx
So I copied my assembly to C:\Program Files\Telerik\Reporting Q1 2013\Bin, reset the reference there, and saw that version. Rebuilt my assembly, copied it to that location, closed and restarted the designer to get it to refresh. The Designer sees the new assembly, the Preview does not.

I can get by this by constantly restarting Visual Studio, but oh what a pain! Any other remedies?

Thanks!
Elian
Telerik team
 answered on 03 Apr 2013
1 answer
80 views
My employer has an existing program which displays numerous reports from a DLL in the Telerik SilverLight ReportViewer.  I have been tasked with building a new program using the same DLL and the Telerik ASP.Net ReportViewer.  For the most part it has worked just fine.  But for a subset of the DLL's reports, there is a rendering issue in the report viewer.  All of the reports in question are Drill Down reports.  And the issue is two fold, namely the drill down columns are extending below the bottom of the report, and the colored columns are bleeding into the transparent columns.

Telerik.ReportViewer.WebForms is version 6.0.12.215, as are the report components.

Has anyone encountered this before?  I haven't been able to find a reference to anything like this in the forums or on Google. But  I am hoping I just haven't found the right search combination, and there is something simple I have missed, like a setting on the viewer or in the reports. 
Chavdar
Telerik team
 answered on 02 Apr 2013
6 answers
136 views
I have a letter sized report that is landscape.  I am using edges in the Group Header Section to create a box around some other text boxes.

My report is 8.7 inches wide, with 0.75inch margins all the way around.

The report displays properly in reportviewer.  When exported to PDF, the lines of the box reach all the way to the right margin.

Is this a known issue, and is there a way around it?

IvanY
Telerik team
 answered on 01 Apr 2013
1 answer
265 views
Hello,
i'm trying to initialize a picturebox by passing the image url using a parameter but it won't work.

as i can notice the parameter will be empty if i read it from the Main method of the report.

how can i get it work?


thanks
IvanY
Telerik team
 answered on 01 Apr 2013
1 answer
176 views
Hi I have created my report with the stand alone report designer. When I preview it in the report designer it works just fine. But when I try and load it on an aspx page I get errors on the page (See attached ) where ever I have a SQL connection. Is the connection string in the trdx file? Or am I supposed to define that someplace else?

Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
      string reportpath = System.Web.HttpContext.Current.Server.MapPath("~") + "/trdx/EAM_Report.trdx";
      uriReportSource.Uri = reportpath;
      ReportViewer1.ReportSource = uriReportSource;

Thanks
IvanY
Telerik team
 answered on 01 Apr 2013
1 answer
127 views
using "object Data Source", object not only have properties, but useful methods too..
(i do not want user functions!!)

InnerBoundaries is a public property
=Fields.InnerBoundaries.Count
 
=> works fine
 
Boundaries is a public method
=Fields.Boundaries("Inner").Count
 
=> incorrect usage of Fields object

this would be fine
=Methods.Boundaries("Inner").Count

Is it possible to use a Field fo a method like a MethodNode ?
IvanY
Telerik team
 answered on 01 Apr 2013
1 answer
163 views
I am creating a new report (first one in this web site) and can't seem to get the details to display in the report.  The viewer displays correctly but empty in Interactive View.  If I switch to Print Preview, I see my page headers and page footer but no detail records.  I have checked the dataview before assigning it to the datasource and it has 10 records so I am at a loss why it won't bind the details.  I get no error on the report.

I am running the report in asp.net 2.0. I added Telerik to the web.config. The detail section has a lot of fields on it which appears to be displaying close to what I need in the preview mode (I'll play with it once I can actually see some data!)

What am I missing??!?!

Here is the code to set up the report from my asp.net page and class library:
Library.Quote_Report _report = new Library.Quote_Report();
Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource;
objectDataSource.DataSource = rptDV;
_report.DataSource = objectDataSource;
pnlTReport.Controls.Add(Globals.SetupReportViewer(_report));
 
public static Telerik.ReportViewer.WebForms.ReportViewer SetupReportViewer(IReportDocument report)
{
Telerik.Reporting.InstanceReportSource _instanceReportSource = new InstanceReportSource();
_instanceReportSource.ReportDocument = report;
Telerik.ReportViewer.WebForms.ReportViewer _reportViewer = new Telerik.ReportViewer.WebForms.ReportViewer();
_reportViewer.ID = "tlrReportViewer";
_reportViewer.Width = Unit.Percentage(100);
_reportViewer.Height = Unit.Pixel(500);
_reportViewer.ReportSource = _instanceReportSource;
 
return _reportViewer;
}
Koren
Top achievements
Rank 1
 answered on 31 Mar 2013
1 answer
212 views
Hello Telerik,
I want to provide a report with Custom Grouping in a crosstab. The parameter is a dropdownlist with availablevalues containing Text (DisplayMember) and Value (ValueMember) fields.
For this to work I have to bind the grouping and the field to the Value, and the Text to the header Textbox. I tried doing it through code but I couldn't get the selected value of the dropdownlist parameter, and the direct binding to the Parameters.GroupBy.Value won't work either.

Is there a way to achieve this in a Xtab ?

Thanks
Stef
Telerik team
 answered on 29 Mar 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?