Telerik Forums
Reporting Forum
1 answer
149 views
Hi there.

I have a report where I have a picture and a few textboxes in the report header. These items are only needed when the report is for a certain type of company. So, what I want to do check to see if it is that certain type of company, then delete/remove/hide those items programmatically. Is this possible? If so, where is the best place to do this?

Mike
Michael Love
Top achievements
Rank 1
 answered on 02 Apr 2010
3 answers
157 views

Hi guys,

I need to create an application with a single exe file, the app works after the xenocode elaboration but I have a problem when I try to generate a report.

Error message:

System.ArgumentException: Extension of type

'Telerik.ReportConverter.ActiveReports.ActiveReportsConverter' does not have name specified.


The error derive from this line of code:

Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", report1, Nothing)


I tried to find if I'm missing some dependencies but I didn't find nothing.

I'm using the telerik Reporting Q2 2009 and the xenocode postbuild 8.0.1112 on a windows seven machine.

thanks a lot!

 

Hrisi
Telerik team
 answered on 01 Apr 2010
1 answer
151 views
Hello,

I tryied to view around 9000 record by report viewer but it gives me  this exception
        System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown
Any Help please?

Yours,
Islam Abdel Aziz
Hrisi
Telerik team
 answered on 01 Apr 2010
1 answer
183 views

My problem is after I assigned data to report by calling report constructor, put it into report viewer and called dataBind() of report viewer. It should show my Pie chart and legend, but it only display the legend.

        public PieChart(Dictionary<string, int> results, ArrayList percentageResult)  
        {  
            InitializeComponent();  
            ChartSeries chartSeries = new ChartSeries();  
            chartSeries.Name = "Pie Chart";  
            chartSeries.Type = ChartSeriesType.Pie;  
            int i = 0;  
            foreach (KeyValuePair<string, int> item in results)  
            {  
                List<Color> itemColor = new List<Color>(10);  
                itemColor.Add(Color.Red);  
                itemColor.Add(Color.Yellow);  
                itemColor.Add(Color.Green);  
                itemColor.Add(Color.Blue);  
                itemColor.Add(Color.Brown);  
                itemColor.Add(Color.Pink);  
                itemColor.Add(Color.Orange);  
                itemColor.Add(Color.Black);  
                itemColor.Add(Color.Gray);  
                itemColor.Add(Color.Olive);  
                chartSeries.AddItem(item.Value, item.Key, itemColor[i]);  
                chartSeries.Items[i].Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid;  
                chart1.Legend.Items.Add(new LabelItem(item.Key + ": " + item.Value + ": "  
                    + percentageResult[i] + " %"));  
                chart1.Legend.Items[i].Marker.Appearance.FillStyle.MainColor = itemColor[i];  
                chart1.Legend.Items[i].Marker.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid;  
                i++;  
            }  
 
            chartSeries.Appearance.LabelAppearance.Visible = false;  
            chart1.Series.Add(chartSeries);  
            chart1.Series[0].Appearance.TextAppearance.TextProperties.Font =  
    new System.Drawing.Font(FontFamily.GenericSansSerif, 15);  
 
            LabelItem labelItem = new LabelItem("chart");  
            chartSeries.AddItem(10, "a");  
            chartSeries.AddItem(20, "b");  
            chartSeries.AddItem(50, "c");  
            chartSeries.AddItem(100, "d");  
 
 
            chart1.Series.Add(chartSeries);  
            detail.Items.AddRange(new ReportItemBase[] { chart1 });  
              
        }  
 

,above is report constructor source code,

            PieChart pieChart = new PieChart(results, percentageResult);  
            ReportViewer2.Report = pieChart;  
            ReportViewer2.RefreshReport(); 

and this is my calling constructor source code part.
 
I also checked out the items in chart1, there are data.
 

Pakorn
Top achievements
Rank 1
 answered on 31 Mar 2010
7 answers
486 views
I am trying to hide a table based on data.  Are whole tables subject to conditional formatting?  I have not even been able to get individual rows to see it.

Here is my expression:
=Reportitem.parent.dataobject.Tiertype = "4T"

Style result is Visible = false (unchecked).

This is the latest of many excpressions I have tried.

Thanks for your usual wise counsel.
Steve
Telerik team
 answered on 30 Mar 2010
0 answers
125 views
Hi,
      I am trying to calculate the height of current page by programatically on runtime. but their does not have such type property.
how can I calculate the height of page?
        I am also try to calculate whitespace height?
   this is also not possible to me.

Replay,
shiatl kasliwal
Top achievements
Rank 1
 asked on 30 Mar 2010
3 answers
93 views
Hi, I have used your example userdef function FormatArray() to show the value of multi params selected on a report.  However since Q1 2010 some of the reports now show textbox errors at preview/runtime stating "An error has occured while processing TextBox 'TextBox8': The expression contains undefined function call FormatArray()."

It seems to be only if the textbox expression has spaces in between some static text and the function 
i.e. "= 'Site: ' + FormatArray(Parameters.paramSite)" fails
but "= 'Site: '+FormatArray(Parameters.paramSite)" works


Steve
Telerik team
 answered on 30 Mar 2010
1 answer
245 views
I have a time sheet report in vb that I want to create subtotals (grouping) by weekly. How can I do this?

My date field is tim_date which is from SQL as datetime field.
Chris Gillies
Top achievements
Rank 1
 answered on 30 Mar 2010
0 answers
81 views
How do I update the copyright date that appears at the footer of all web pages, in a site that uses Telerik? I looked for a footer file, include file and also looked in the site source files but could not find it anywhere. Thanks for your help/instructions...
Jason Turner
Top achievements
Rank 1
 asked on 29 Mar 2010
1 answer
338 views
After upgrading to the newest reporting version, a report that had been working fine previously started giving the following error:

An error has occured while processing Report '':
Unable to cast object of type 'DataObject' to type 'Telerik.Reporting.Expressions.IHierarchicalData'.

After some experimentation I found that removing the textbox in the report's footer that used Count(RowNumber()) (to display the total count of detail items) the error went away and the report worked as before.  How can I show the count without getting an error?

Thanks,
Mike
Steve
Telerik team
 answered on 29 Mar 2010
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?