Telerik Forums
Reporting Forum
3 answers
121 views
Hi
i am working with telerik reporting on vs 2008
i have a problem with it,
when that i want see data explorer or report explorer menu it does not show,i right click on report surface & select view menu & it's sub menus 
but didn't show,i install silverlight3 on vs2008 now inactive telerik reporting
plz help me.
thanks
Massimiliano Bassili
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
86 views
Hi,

I would like to show an image on each row by using picture box and show some info when the cursor move on it (like a tooltip). Is it possible? If so, how to do it.

thanks a lot.
Steve
Telerik team
 answered on 10 Jan 2012
7 answers
1.2K+ views
Thanks
Steve
Telerik team
 answered on 10 Jan 2012
8 answers
473 views
Hi,

I'm experiencing quite some difficulty getting a subreport to act on the master report's parameters. I'm using the lastest TelerikReporting version 3.0.9.311 (Q1 2009).

I have the following setup: 2 reports, one to act as master (named KeyFigures), one included as sub report (named ChartSubReport).
Both have parameters "CompanyID" defined as Integer with a default value set to 1 (via designer).
The subreport item is set to pass the master report parameter thus: [=Parameters.CompanyID] (also via designer).

I want to pass the companyID from Session to both master report and subreport.

I use NeedDataSource event for both reports to populate the data:

private void Chart_NeedDataSource(object sender, System.EventArgs e) 
    string strCompanyID = this.ReportParameters["CompanyID"].Value.ToString(); 
// The above always gives the default parameter value in the sub report, but correct in the master report 
// ... 

When execution of NeedDataSource events, the master report has the correct value passed from Session. The subreport however keeps the old default value regardless. I have tried to programatically set this value in different ways but no different result.

The Web report viewer is initialized on Page_Load event like this:

Sunscape.TKS.Reports.KeyFigures report = new Sunscape.TKS.Reports.KeyFigures(); 
report.ReportParameters["CompanyID"].Value = Session["intCompany_ID"]; 
 
Telerik.Reporting.SubReport subReport = report.Items.Find("chartSubReport", true)[0] as Telerik.Reporting.SubReport; 
subReport.Parameters[0].Value = Session["intCompany_ID"]; 
this.ReportViewer.Report = report;
 

this shows I even try to programatically set the subreport's CompanyID, but it is not taken into account when NeedDataSource is fired for the SubReport. I know by forcing an exception to be thrown in both NeedDataSource handlers, that the master report's NeedDataSource event is fired first, and the subreport's second.

The above works for the master report which displays the correct data, but the sub report does not. It has the default parameter value of "1" regardless. Why is this?

I have browsed the forums and tried to follow any examples but none I have found address this exact problem. The best suggestion I have found is the above attempt by programmatically set the parameter before loading the report in the viewer.

Since it does not work this way, what is the correct way of forcing the sub report to get the value from the master report?


kind regards,
Ernst Sognnes
Patrick
Top achievements
Rank 1
 answered on 10 Jan 2012
2 answers
353 views
i have been struggling, googling and searching my problem to no avail.

i am using reporting v5.3.11.1116  for exporting a chart. The axis are dates. I have played around with autoscale and setting step and label step, min value, and max value.

However, it seem to get the same result: The line is constructed and scaled properly, but the x-axis labels are always spaced evenly apart even when the time between points is varied.  Please see my attachment.

You will notice that one major tick is 2 months, but the next is 12 days. It conitnues like that.

Here are some of my current settings that wil not work.

            chart1.PlotArea.XAxis.MinValue = dataSeriesDisplayChartViewModel.DataSeriesDisplay.SelectedStartDate.AddDays(-1).ToOADate();
            chart1.PlotArea.XAxis.MaxValue = dataSeriesDisplayChartViewModel.DataSeriesDisplay.SelectedEndDate.AddDays(1).ToOADate();
            chart1.PlotArea.XAxis.Step = (chart1.PlotArea.XAxis.MaxValue - chart1.PlotArea.XAxis.MinValue)/10;

           this.chart1.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Reporting.Charting.Styles.AlignedPositions.Top;
            this.chart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45F;
            this.chart1.PlotArea.XAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
            this.chart1.PlotArea.XAxis.Appearance.MajorGridLines.EndCap = System.Drawing.Drawing2D.LineCap.Flat;
            this.chart1.PlotArea.XAxis.Appearance.MajorGridLines.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid;
            this.chart1.PlotArea.XAxis.Appearance.MajorTick.Color = System.Drawing.Color.Black;
            this.chart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black;
            this.chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.ChartValueFormat.ShortDate;
            this.chart1.PlotArea.XAxis.AutoScale = false;
            this.chart1.PlotArea.XAxis.AxisLabel.Appearance.Visible = true;
            this.chart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Black;
            this.chart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.chart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Observation Date";
            this.chart1.PlotArea.XAxis.AxisLabel.Visible = true;
            this.chart1.PlotArea.XAxis.DataLabelsColumn = "ObservationDateOADate";
            this.chart1.PlotArea.XAxis.IsZeroBased = false;


how do i get the x axis labels to display evenly spaced out values. It is okay if the labels do not match up with the points. For example, a data point on 1/15/12 could be by the actual label of 1/12/12.  we are printing out a separate report for the raw values in a different report.
Robert
Top achievements
Rank 1
 answered on 09 Jan 2012
1 answer
97 views
do the minor gridlines or tick marks appear on the X axis? If so, how?

i have this code, but still nothing appears, only the major lines.

my xaxis is a date value

            
chart1.PlotArea.XAxis.Appearance.MinorGridLines.Color =
Color.Black;<BR>           
chart1.PlotArea.XAxis.Appearance.MinorGridLines.EndCap =
LineCap.Flat;<BR>           
chart1.PlotArea.XAxis.Appearance.MinorGridLines.PenStyle =
DashStyle.Solid;<BR>           
chart1.PlotArea.XAxis.Appearance.MinorGridLines.Visible =
true;<BR>           
chart1.PlotArea.XAxis.Appearance.MinorTick.Visible =
true;<BR>           
chart1.PlotArea.XAxis.Appearance.MinorTick.Color = Color.Black;
Elian
Telerik team
 answered on 09 Jan 2012
1 answer
450 views
Hello,

I want to set a textbox with the next formula
[= "Date of " + Parameters.CALCDATE.Value]

For CALCDATE = '04/11/2011' The result is:

Date of 04/11/2011 00:00:00

The desired result is

Date of 04/11/2011

Format string is set to {0:d} but it does not work properly.
Instead I tried with

[="Date of" + Format({0:d}, Parameters.CALCDATE.Value)]

And it does not work either (it throws an error).

How can I set the format to this date?

Thank you very much.

Sergio.
Steve
Telerik team
 answered on 09 Jan 2012
1 answer
151 views
In a Telerik report table, I have a row containing a parent group (Classification) and a second row containing a child group (Detail).  Each classification can contain mutiple detail rows.  I am attempting to set this up as a drill down, with the detail rows hidden until toggled from the Classification.  To do this, I have tried the following:

In the first column cell of the Classification row, I am setting a "Toggle Visibility" action, and setting the Detail group as the toggle target.  In the group properties of the Detail group, I have set Visible = False (otherwise the rows are always displayed on the report).  When I run the report, only the Classificaiton rows are displayed in the table, with a toggle button in the first cell, as I intended.  However, when I click any of the toggle buttons, I get the following error:

An error has occurred while processing Table 'table1':
Index was outside the bounds of the array.

If I shut off the Toggle Visibility action, all rows are displayed in the report, and the error does not occur.  Any idea why the toggle feature would be encountering this error?
Hadib Ahmabi
Top achievements
Rank 1
 answered on 09 Jan 2012
1 answer
55 views
I wondering the best way to hide details of the reports based on the count.
My query has select top(1000), so only the top 1000 items are returned.  If I get 1000, I display a message saying please refine your parameters.
How should I set the visibility to hide the details and the groups.  I tried to set the binding of visibility to the expression
IIF( count(fields.field1) < 1000, true, false) , but that's not going to get a total count of the items.  What's a good way to do this?  Is there a total result set count?
Hadib Ahmabi
Top achievements
Rank 1
 answered on 09 Jan 2012
3 answers
161 views

I've a problem with Report Viewer...
In a first time it's all ok...
but after a while when loads the page, it starts to blink (i can't use the report parameters)...
If I press ESC the report parameters are not available but if I refresh the page data are available but the part of parameters continuos to blink...
The report don't works as it should...
What's happened?

Is possible thinking that a process locks the browser?
Can you help me?

Best wishes
Luca Martini

Lasly
Top achievements
Rank 1
 answered on 09 Jan 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?