Telerik Forums
Reporting Forum
3 answers
85 views
I am experiencing problems seeing the parameter area in my reports. I have to refresh the page before I can see my Param combobox or preview button when using IE8. Google Chrome (16.0.912.77) appears to work fine.
I am usingTelerik_Reporting_Q3_SP1_v5_3_12_119_Dev & Report Viewer for Asp.Net
The compatability view settings are not making any difference for me.

Any suggestions?
Steve
Telerik team
 answered on 02 Feb 2012
1 answer
110 views
Hello Telerik,

I'm having alignment issues with my controls on the report. please find attached picture where Created By and Prompt are not in the same indent. Is there any way to make them both in the same indent.

Report needs to look like

Item Status:                          Prepared By:               Prepared On:                    
Last Updated On:                 Rate:                           Quantity:       
                            
Thanks!
Steve
Telerik team
 answered on 02 Feb 2012
1 answer
168 views

Hi,

I'm trying to render a chart inside the Telerik report. I'm also rendering the same chart in my MVC web application using Telerik Extensions for ASP.NET MVC chart control. But both are giving different charts.

Here is the code:

Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
            Telerik.Reporting.Chart defChart = (Telerik.Reporting.Chart)procChart.ItemDefinition;
  
            defChart.Series.Clear();
            int xAxisIndicesCount = (from cdsl in chartDataSourceList select cdsl.XAxisValue).Distinct().Count();
  
            defChart.PlotArea.XAxis.Items.Clear();
            defChart.PlotArea.XAxis.AutoShrink = false;
            defChart.PlotArea.XAxis.AutoScale = false;
            defChart.PlotArea.XAxis.AddRange(0, (xAxisIndicesCount > 0) ? xAxisIndicesCount - 1 : 0, 1);
            defChart.SeriesOrientation = seriesOrientation;
            defChart.DataGroupColumn = "GroupingValue";
            defChart.PlotArea.XAxis.DataLabelsColumn = "XAxisValue";
            defChart.Legend.Appearance.GroupNameFormat = "#VALUE";
            defChart.IntelligentLabelsEnabled = true;
  
procChart.DataSource = chartDataSourceList;


Essentially if you can compare the charts I have attached, in the PDF chart, the series columns are misplaced. Please check and revert if you need further clarifications. I hope you will better be able to figure the issue by comparing the charts, than explaining it here. Please revert asap.

Thanks

Yavor
Telerik team
 answered on 02 Feb 2012
2 answers
139 views

Hello friends,

I am using crystal report in my project. in this, I am using crystal's pull method to display data in it.

So when any small change [adding Total, Alignment, or add new field in the existing data source etc.] in report is needed, i can copy modified the .rpt file in to the production server, without the asp.net published files.

Can I use Telerik report in the same way ?

Shivan
Top achievements
Rank 1
 answered on 02 Feb 2012
0 answers
213 views
Hi,

I'm trying to create a table in which besides having an unknown number of rows in the Data Source I might have too a unknown number of columns (up to a max) so I decided to add the maximum amount of columns I could have and hide them using conditional formatting on all the cells of that column if the value returned by processing the row in a user-defined function are < 0. 

I've made sure that the rule on the conditional formatting is being applied as if I change the Background this one changes, however when I set the Layout to not visible (unchecked) the cells don't hide.

Any idea on how this could be done or why it's not working?
Roberto
Top achievements
Rank 1
 asked on 02 Feb 2012
0 answers
146 views
I am currently developing reports for a web based solution using Telerik Reporting and the report viewer.  The reports created could display a different image in the detail section for every single record.  As a result I have a function that loads the appropriate image.  When I first implemented this I quickly realized that I had a memory usage problem.  The problem was that an image object was being loaded into memory for each record on the report.

To attempt to solve this problem I created a static variable that stores the images that have been loaded into memory already. When the original method is called it checks to see if the image is already in memory.  If the image is found in memory it returns the located image otherwise the image is loaded.  Additionally, logic is built in so that an image is only retained in memory for 15 minutes since the last time it was accessed.  With this approach I was able to decrease the memory usage and increase the performance.  For simple implementations this solution would be enough but unfortunately the current requirements are more complex.

The problem is that I am governed by regulations that dictate the size of the images based on the number that are displayed.  Since this could be different for each detail record my solution is to create a composite image in memory that I can size to meet my requirements.  Now instead of working with possibly 100 images the amount of images that I could be working with could be in the tens of thousands.  There are some rules I can put in place to limit the amount of unique images but I am still concerned about the amount of memory that will be used as the number of users grow and more reports are generated.

The best solution that I can think of is to only keep the image in memory for as long as it is required but I can not determine a good way to accomplish this.  The static variable is shared by the entire application (every user) and the image can not be disposed of until report generation is complete.  My current goals to solve this problem are:

  1. Keep memory usage at a minimum (only one unique image loaded for all users using the application)
  2. Only keep an image an memory for as long as it is needed by current report requests
  3. Reduce the impact on the end user experience

At this point I have accomplished the first goal but I am still not satisfied with the solution to the second goal.  I have some ideas on how to keep track of which report jobs are using an image while at the same time only having the single image loaded.  I am concerned that by building on this extra layer of tracking it will have a significant impact on performance.  Before I went down that road I wanted to check and see if I am trying to over complicate an issue that doesn't need to be complicated.  Is their a simpler solution to what I am trying to accomplish using Telerik Reporting?

Kevin
Top achievements
Rank 1
 asked on 01 Feb 2012
1 answer
319 views
Version=5.1.11.928

Adding a boolean parameter with visibility set to true, is causing a javascript error in the browser which means that the report never generates, and the "generating report" swirl keeps swirling.

If you just try to preview the report in the report creator, then it works fine.

The file throwing the error is Resources.Parameters.js:
the  method
BooleanEditor.prototype.Init = function ()
{
    var radioButtonList = document.getElementById(this.radioButtonID);
    if (radioButtonList)
    {
        var inputs = radioButtonList.getElementsByTagName("INPUT");
        if (inputs)
        {
            var editor = this;
            for (var i = 0; i < inputs.length; i++)
            {
                var input = inputs[i];
                input.onclick = function ()
                {
                    editor.ValueChanged();
                };
                var label = input.nextSibling;
                var text = "";
                var reportViewer = GetReportViewer();
                switch (i)
                {
                    case 0:
                        text = reportViewer.GetString("ReportParametersTrueValueLabel");
                        break;
                    case 1:
                        text = reportViewer.GetString("ReportParametersFalseValueLabel");
                        break;
                }
                label.firstChild.nodeValue = text;
            }
        }
    }
    return false;
}

var label = input.nextSibling;
results in label = null;
so once we get to:
label.firstChild.nodeValue = text;
an error is thrown. I've seen this both in IE8 and in Firefox 9.0.1

You can test it by creating a blank report, adding a single boolean parameter and making it visible.

You must then create a web project so you can view the report in a report viewer control in a browser.

If there's anyway I can fix this without creating "fake" string parameters and then remapping them to the real boolean parameters, please let me know.
Steve
Telerik team
 answered on 01 Feb 2012
1 answer
66 views
I have a report that includes a row/col table of data + a couple charts. I bind the data to the report via an ObjectDataSource.

The problem I'm facing is that some of the data needs to be HtmlEncoded prior to display in the ReportViewer but should not be encoded when exported to PDF/XLS/etc. How do I go about doing this? Is there something passed to the ObjectDataSource that will allow me to know what the target is for the returned data?
Steve
Telerik team
 answered on 01 Feb 2012
2 answers
217 views
Hi

my report has two sqlDataSources: first is bound to report as report data, the second is bound to multivalue parameter as data source (and selected value from this parameter is used as a filter). Now I need to set default value for that parameter using expression, but fields are available only from first (report bound) data source. Is it possible to address field from second data source in expression? If not, how to select default value from second expression programmatically?

Thank you in advance,

Jiri
Jiri
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
172 views
Hi.. I'm using Telerik Reporting Q2 2011.

I have a problem with my Telerik reporting bar chart.  Everything works perfectly , however i need my chart to have different color for each bar.
I've set my chart LegendDisplayMode to itemLabels, make sure my series pallete is not set and write these codes

public WebCategoryBarChart()
      {
           //
           // Required for telerik Reporting designer support
           //
           InitializeComponent();
 
           this.chart1.Series[0].Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
 
           Color[] barColors = new Color[8]{
               Color.Purple,
               Color.SteelBlue,
               Color.Aqua,
               Color.Yellow,
               Color.Navy,
               Color.Green,
               Color.Blue,
               Color.Red
           };
           int i = 0;
           foreach (ChartSeriesItem item in chart1.Series[0].Items)
           {
               item.Appearance.FillStyle.MainColor = barColors[i++];
           }
 
          
           //
           // TODO: Add any constructor code after InitializeComponent call
           //
       }

But still the default color of the bars is still there..

How should i go about this..?
Elian
Telerik team
 answered on 31 Jan 2012
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?