Telerik Forums
Reporting Forum
6 answers
201 views
Hi, we are having 2 issues after upgrading from Telerik Reporting Q3 2012 to Q2 2013 SP1.

1) We are programmatically changing the grouping in the NeedDataSource event for a report. In the event, the Telerik.Reporting.Group now returns null when the report is run and throws a NullReferenceException when accessed. Here is the code that works ok in Q3 2012 but fails in Q2 2013 SP1.  The code compiles ok but fails on the first line with a NullReferenceException.  Should we still be able to access the Group in this way?

group1.Groupings.Clear();
 
if (intervalGroup == "HalfHour")
{
    group1.Groupings.AddRange(new Telerik.Reporting.Grouping[] {
            new Telerik.Reporting.Grouping("=dIntervalStart")
        });
    txtIntervalGroupLabel.Value = "=dIntervalStart";
    txtIntervalGroupLabel.Format = "{0:g}";
}
else
{
    group1.Groupings.AddRange(new Telerik.Reporting.Grouping[] {
           new Telerik.Reporting.Grouping("=dIntervalStart.Date")
        });
 
    txtIntervalGroupLabel.Value = "=dIntervalStart.Date";
    txtIntervalGroupLabel.Format = "{0:d}";
}


2) We also need to access the values of ReportParameters in the NeedDataSource event.  Accessing the ReportParameterCollection directly using the following syntax returns null for the parameter value after the upgrade to Q2 2013 SP1 but worked fine in Q3 2012:

string intervalGroup = ReportParameters["IntervalGroup"].Value.ToString();

We do have success accessing the parameter values by using the processing instance and then the Parameters property of that object:

Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
string intervalGroup = report.Parameters["IntervalGroup"].Value.ToString();

I just wanted to make sure that accessing the values of parameters through ReportParameters directly has been deprecated or made obsolete. Can you provide any info on this?

Thanks!
Stef
Telerik team
 answered on 09 Sep 2013
1 answer
81 views
We have a VB.NET installation of reports that use the Telerik Report Viewer.  They were designed to be opened and viewed in Safari on iPads and have so far been a great boon to our field team's productivity.  But all the BETA tests we have done using Apples new iOS7 have produced the same results: which is none.  We are able to view each report's individual page and can interact with the parameter drop downs at the top of the viewer, but when the report is supposed to render, nothing is produced.  It doesn't even appear as though it has processed any of the parameters (no processing animation).  The new iOS is set to be released by Apple on Sept. 10.  We are putting out a communication to our users that they must not upgrade until we find a solution, but there is little hope that everyone will be compliant on this.

Anyone else have this issue, and does anyone know a work around, or what the problem actually is?

Thanks,
Danny
Stef
Telerik team
 answered on 09 Sep 2013
5 answers
235 views
Hi
I have an application that uses ASP.NET forms authentication,
I store uploaded images in specific folders on the server which are restricted access with the following code in the web.config.
<location path = "myimages">
    <system.web>
        <Authorization>
            <deny users ="?"/>
        <Authorization>
    </system.web>
</location>

This works well in the application as the images are only viewable if the user has logged in and is authenticated.
However if I have a Picturebox on a report and try and bind it to one of the images in the restricted folder it fails,

The reports are stored in their own Project within the same solution as the main website.

Is there a way I can authenticate the reports so that I can access the images.

I hope I have explained the issue, but please ask if you need clarification

Thank You

Stef
Telerik team
 answered on 06 Sep 2013
1 answer
204 views
I have a report that I have to code that is pulled from 2 different tables. Both tables have the same data, but it's group a bit differently. I need sub totals for each category though. I also need a final total over all. Should I use sub reports or try to use groups? How can I do sub totals on groups?

Stef
Telerik team
 answered on 06 Sep 2013
3 answers
148 views
Hi,

I have to create a report using Telerik Reporting Q1 2011 which should be similar to the attached report . i am new to telerik controls so Can you guide me how to create the layout . I will assign the data source using code behind

thanks,
pankaj
Stef
Telerik team
 answered on 06 Sep 2013
1 answer
471 views
I do not see the Telerik reporting as an option in the add new item? I am using VS2012 trial version but we are getting the key next week. Is the trial version the issue? If not what could be causing this? Also, I reinstalled the Telerik reports and have VS2012 selected as the environment.
Thanks,
Charles
Nasko
Telerik team
 answered on 06 Sep 2013
5 answers
164 views
I have the option of SmoothLine set to true on my line series. How can avoid the wiggling on the line series? as shown on capture.jpg.

thanks for helping out.
Wadigzon
Top achievements
Rank 1
 answered on 06 Sep 2013
1 answer
1.6K+ views
Hi, am trying to generate custom on the fly report with landscape or portrait orientation (user selection during runtime). The fields should auto adjust to the page size accordingly. Any idea how to accomplish this? 

Here's what I did without much success-
1. create a report with custom size (i.e. width 8.5 and length 11, default is portrait)
2. create panels for header and details. dock the fields to left or right of the panels. am assuming the fields should stick to the edges of panel if page resized
3. in code ... I did the following to change the orientation to landscape (didnt work)

 

 

.PageSettings.Landscape = True
.PageSettings.PaperSize = New Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(11.0R), Telerik.Reporting.Drawing.Unit.Inch(8.5R))
.Panel1.Width = New Telerik.Reporting.Drawing.Unit(10, Telerik.Reporting.Drawing.UnitType.Inch)
.Panel2.Width = New Telerik.Reporting.Drawing.Unit(7, Telerik.Reporting.Drawing.UnitType.Inch)
.Width = Telerik.Reporting.Drawing.Unit.Inch(11.0R)

Thanks.

Stef
Telerik team
 answered on 06 Sep 2013
1 answer
98 views
Hi all;
I will like to know if there is a way to send parameters to my reportviewer and get the report refresh.
Thanks.
Nasko
Telerik team
 answered on 06 Sep 2013
1 answer
124 views
This one comes from your own documentation. Please take a look at this graph
http://www.telerik.com/help/reporting/graphhowtocreatelinechart.html

now if you look at the legend, each series, has a marker: Blue Square for Accessories, Red Rhomboid for Clothing, and Green Circle for components. But those are not in the graph at all (no Square, no Rhomboid and no Circle can be found in the graph). So what's the point in showing those geometric figures in the legend when just a single line (no Square, no circle, no Rhomboid) will suffice?. Is there anyway to deactivate these geometric figures? and show just a single line on each legend?

thanks.
Peter
Telerik team
 answered on 06 Sep 2013
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?