Telerik Forums
Reporting Forum
3 answers
151 views
I have a pdf report that I am creating programmatically behind the scenes and I want to NOT create the report at all if there is no data.

I saw that RenderReport returns a result and I want to know if I can check to see if I get any rows in my NeedDataSource event handler and return and set an error there to have the PDF not be created.

Has anyone addressed a similar issue?

Mike
Michael Love
Top achievements
Rank 1
 answered on 02 Apr 2010
1 answer
155 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
163 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
158 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
187 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
489 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
131 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
97 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
252 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
86 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
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?