Telerik Forums
Reporting Forum
2 answers
632 views
I would like to use a Boolean report parameter in my report, but I would like to change the display value of the radio buttons.  Instead of having it display 'true' and 'false', I would like to hard code the values to strings.  I thought that I could access the ValueMember and DisplayMember and change it that way, but I have been unsuccessful so far.
Sasan
Top achievements
Rank 1
 answered on 02 Nov 2010
3 answers
165 views
Hi,

How can you know when a report has finished processing? Is there an event that is fired when the report has completely renderd?

we want to be able to track how long reports are taking to run.

Thanks
Peter
Telerik team
 answered on 02 Nov 2010
1 answer
107 views
Hi, I would like to add strip lines to my chart in my report.  I have found an example that says to use code like the following below:
radChart.DefaultView.ChartArea.AxisY.StripLinesVisibility = Visibility.Collapsed;

I don't see this setting in my chart though.  Is this available for reporting charts?  If so, could you please point me to how this property can be accessed?  Thanks.
Peter
Telerik team
 answered on 02 Nov 2010
5 answers
198 views
Hi,
I am using Reporting Service Q1-2008. In Telerik Report we are using a Chart Control.
How can we Increase a Height at Run Time From Code. when we Bind a Data Into The Chart.

we are using
1.

chrtServices.PlotArea.Appearance.Dimensions.SetDimensions(Telerik.Reporting.Charting.Styles.Unit.Pixel(500), Telerik.Reporting.Charting.Styles.Unit.Pixel(3000))

2. 

chrtServices.PlotArea.Appearance.Dimensions.Height = Telerik.Reporting.Charting.Styles.Unit.Pixel(Convert.ToInt32(Request.QueryString("Height")) + 1000)

But no one is working. My application is that as per my data .I have to set a Height of Chart.
Please reply me.

Steve
Telerik team
 answered on 02 Nov 2010
2 answers
130 views
Hi there,

I'm adding cascading parameters programmaticaly and code works fine in Visual Studio 2008 ( Q2 2009 SP1, WebForms.ReportViewer), but in 2010 all parameters disappear when value of main parameter is choosed.

How can I make it work?
Cheers,
Yana

private void addParameters()
        {
            // Create prm Bearer
            Telerik.Reporting.ReportParameter Bearer = new Telerik.Reporting.ReportParameter();

            Bearer.Name = "Bearer";
            Bearer.Type = Telerik.Reporting.ReportParameterType.Integer;
            Bearer.UI.Visible = true;

            Bearer.UI.AvailableValues.DataSource = new int[] { 1, 2, 3, 4 };
            Bearer.UI.AvailableValues.ValueMember = "Item";
            Bearer.Value = 0;

            // Create prm Metric
            Telerik.Reporting.ReportParameter Metrix = new Telerik.Reporting.ReportParameter();
            Metrix.Name = "Metrix";
            Metrix.Type = Telerik.Reporting.ReportParameterType.Integer;

            Metrix.UI.AvailableValues.DataSource = new int[] { 1, 111, 1111, 2, 22, 222, 2222, 3 };
            Metrix.UI.AvailableValues.ValueMember = "Item";
            Metrix.UI.Visible = true;

            string filterExpression = Metrix.UI.AvailableValues.ValueMember;
            Metrix.UI.AvailableValues.Filters.Add(
            "=" + filterExpression, Telerik.Reporting.Data.FilterOperator.In, "=GetBearer(Parameters.Bearer)");

            this.ReportParameters.Add(Bearer);
            this.ReportParameters.Add(Metrix);
        }
        public static int[] GetBearer(int bearer)
        {
            switch (bearer)
            {
                case 1:
                    return new int[] { 1, 11, 111, 1111 };    
                case 2:
                    return new int[] { 2, 22, 222, 2222 };
                default:
                    return new int[] {};

            }
        }
yana roze
Top achievements
Rank 1
 answered on 01 Nov 2010
2 answers
146 views
I have a report that has textboxes and subreports on the detail line

I am trying to make all these boxes the same height, I have a textbox where the data will wrap and i want to make all the other items on the detail line the same height as this box. the main problem that i'm having is setting the height on the textboxes on the sub reports. The sub report also includes a cross tab table.

at runtime when on the Item databound the height of the item is only giving the default value not the height it has growen to during the wrap.

is there any way to get the actual height from the textbox?

Thanks
David
Top achievements
Rank 2
 answered on 01 Nov 2010
2 answers
65 views

Hello,

 

I am trying to create a textbox that reads APPLICATION NAME from a table and displays it in the footer of the report.

 

I have created a class with following code:


Public Class CVA_Rpt
  
Public Shared Function Get_Config_Item(ByVal Item_name As String) As String
  
Dim mySelectQuery As String = "SELECT Constant_Value from tbl_CVA_Config Where Constant_Name='" & Item_name & "'"
  
Dim myConnString As String = ConfigurationManager.ConnectionStrings("CVA_Reporting").ToString()
  
Dim myConnection As New SqlClient.SqlConnection(myConnString)
  
Dim myCommand As New SqlClient.SqlCommand(mySelectQuery, myConnection)
  
myConnection.Open()
  
Dim myReader As SqlClient.SqlDataReader
  
myReader = myCommand.ExecuteReader()
  
' Always call Read before accessing data.
  
Get_Config_Item = ""
  
While myReader.Read()
  
Get_Config_Item = myReader.GetString(0)
  
End While
  
' always call Close when done reading.
  
myReader.Close()
  
' Close the connection when done with it.
  
myConnection.Close()
  
End Function
  
Public Shared Function Application_Name() As String
  
Application_Name = Get_Config_Item("APPLICATION_NAME")
  
'Application_Name = "CVA Reports"
  
End Function
  
End Class


During design time, I enter the following in a textbox of the footer:
= CVA_Reports.CVA_Rpt.Application_Name()

I get the following error when previewing the report:
An error has occurred while processing TextBox 'txtApp_Db_Name':
An error has occurred while executing function App_name(). Check InnerException for further information.
------------- InnerException -------------
Exception has been thrown by the target of an invocation.
------------- InnerException -------------
Object reference not set to an instance of an object.

Note: I testing the CVA_Reports.CVA_Rpt.Application_Name() using a ASP page and it returns the desired value.

How can fix this error ?  I have looked everywhere on how to fix this error.  I have no clue. Please help.  THANK YOU!

Massimiliano Bassili
Top achievements
Rank 1
 answered on 01 Nov 2010
1 answer
119 views
Hi!

I'm very pleased to see that XML Report Serialization will be included in the upcoming Q3 2010 release.
Would you please tell me if existing reports made prior to the Q3 release can be converted to XML report definitions?

Thank You!
Sverre
Steve
Telerik team
 answered on 01 Nov 2010
0 answers
516 views
Nevermind. Math helps.
Eric Wallace
Top achievements
Rank 1
 asked on 30 Oct 2010
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?