Telerik Forums
Reporting Forum
3 answers
148 views
I am trying to add a Pie Chart to a Telerik report for the first time and I am having an issue with that chart being cropped on the right-hand side just after the legend starts.  I have included a screen image of the issue.  

I have added the pie chart through the design interface and I am populating the data the the OnNeedData event.  Below is that code.  

private void PieChart_NeedDataSource(object sender, System.EventArgs e)
 {
            //Charts - Columns to Display
            string[] GraphColumnsToExport = new string[2] { "ShortLegendTitle", "Data" };
 
            //Charts
            DataTable Total = _SharedDataSet.Tables["CurrentYearToDate"].DefaultView.ToTable("tempTableName", false, GraphColumnsToExport);
 
            //Set the Series
            Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
            Telerik.Reporting.Chart defChart = (Telerik.Reporting.Chart)procChart.ItemDefinition;
            ChartSeries serie = new ChartSeries();
            serie.Type = ChartSeriesType.Pie;
            serie.Clear();
             
 
            foreach (DataRow dr in Total.Rows)
            {
                ChartSeriesItem item = new ChartSeriesItem();
                item.Label.Visible = true;
                item.YValue = Convert.ToDouble(dr["Data"]);
                item.Name = Convert.ToString(dr["ShortLegendTitle"]);
                item.Appearance.Exploded = false;
                item.Label.TextBlock.Text = item.Name + " - #%";
                serie.Items.Add(item);
                 
            }
            serie.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
            defChart.Series.Add(serie);
}

Elian
Telerik team
 answered on 17 Apr 2012
1 answer
89 views
When I select parameter which shall update the list of data of other parameter, I do not see when he will be ready for use.

Thanks.
Steve
Telerik team
 answered on 17 Apr 2012
3 answers
323 views
Hi,

I have a web app which outputs reports to pdf for users to download.  The reports contain simplified Chinese text.  I am using Arial Unicode MS font to display this and in my test environment (Win 7 Pro, VS2010) all works fine.

I've now deployed my application to a Win Server 2008 machine, which also has the Arial Unicode MS font installed, but the pdfs produced are not rendering the Chinese characters - all I get is rectangular blobs.  I'm sure that the reports are using the Arial Unicode font - some bits are in English by design and they look identical to my test environment reports.

Is there anything else I need to do in Win Server 2008 to make this work?  Any other ideas as to what might be wrong?

Thanks.

Update: it turned out that a server reboot fixed this.  The Arial Unicode font wasn't installed when I first deployed the app.  It installed fine, but my app still didn't work properly until I rebooted the server - very odd!
Steve
Telerik team
 answered on 17 Apr 2012
1 answer
37 views

Hi
Is there a way to change the toolbar layout to add margins / paddings.
Somehow the text in the pagination area is dropping a few pixels when viewed in ie9.

see attached screendump image

Maybe you have a fix/solution that help us.

Best Regards
Peter

Steve
Telerik team
 answered on 17 Apr 2012
1 answer
95 views
HI, I'm using Telerik Reporting 5.1.11.928, in the Report Viewer toolbar, I have and empty button, and I don't know what it is.
Any Idea? Please check attached file.
Thank you.

This is the code xaml code:
<UserControl
    x:Class="Etelesolv.Telemanager.TME.UserControls.Invoice.InvoiceReportUC"
    xmlns:my="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"     
    mc:Ignorable="d"
    d:DesignHeight="500" d:DesignWidth="400">
     
    <my:ReportViewer Name="ReportViewer1"
        HorizontalAlignment="Stretch"
        MinWidth="400"
        RenderBegin="ReportViewer1_RenderBegin"
        ReportServiceUri="../MyReportingService1.svc"
        Report="MyReport.Reporting.Invoice, MyReport.Reporting" UseNativePrinting="True" />
</UserControl>

Steve
Telerik team
 answered on 17 Apr 2012
10 answers
707 views
This is my first shot at using the Telerik reporting tools and I'm really loving them, but I am stuck with a problem.
I have a parameter that had a DataSource bound to it. The SQL in the DataSource works fine and returns all the records it is supposed to. I have the filter set to this: =Fields.CompanyId = =Parameters.CompanyId.Value
The Parameters.CompanyIdValue is a static value with the type of string.

I have been stuck on this for 3 days now and it is becoming a major issue. Can someone give me a little guidance?
Steve
Telerik team
 answered on 17 Apr 2012
5 answers
362 views
Dear Admin,

Please kindly advise how to show report data to across then down?
eg.  
Item01   Item02   Item03   Item04   Item05
Item06   Item07   Item08   Item09   Item10
Item11   Item12  

Thanks
Steve
Telerik team
 answered on 17 Apr 2012
5 answers
289 views
Hi, we have a issue.
We want to print a report on EPSON LX300 dot matrix printer, but the prints are unreadable. We tested with all fonts types and sizes.
Thanks.


David
Colombia.
Steve
Telerik team
 answered on 17 Apr 2012
1 answer
246 views
Hi Guys,
     
     Current Environment :   Telerik Reporting Q1 2011   、Silverlight ReportViewer

     When the report has been exported to the pdf file, the 'save as ' file dialog has displayed,but the default filename  is blank.

     At this moment,I need to set the default filename. 

     how to do it ? I am in urgent for your help.

     Thanks.

     please see the illustration in the attachment file.

Steve
Telerik team
 answered on 17 Apr 2012
1 answer
196 views
I have a report which has its own data source.  Inside that report is a table where I have sub-report content (not an actual subreport class, just *content* - in a table object).

That table has a textbox that I'd like to make Visible = true/false depending on a value in the report's data.  

I'm already using parameters between report data source and the table data source to align report to sub-report data.  I would like to avoid using parameters because it's my understanding that fields from the report's data source are not available to populate a value of a parameter.  

I would also like to avoid setting the report's data source at run-time because that process doesn't seem clear to me & I'd like to avoid getting deeply involved in code just to turn a textbox.Visible=false.

I was *hoping* that I could somehow get access to the processing namespace's version of the report from inside a table's ItemDataBound event handler.  However, it seems clear to me now that instantiating a Processing.Report can't be done starting with a Processing.Table.  It just looks like the parent collection yields little useful in the way of a class I can convert to a Processing.Report.  I also don't know for certain what TYPE of parent class there is for a Processing.Table.  From the documentation it looks like your only options are a ProcessingElement class that I can't convert into anything that gets me closer to a Processing.Table.

Should getting a value from the Report's data source & sending it to a Table be so difficult?  If anyone has ideas on how to solve this problem, it would be extremely helpful to me.  Thank-you very much.
Greg
Top achievements
Rank 1
 answered on 14 Apr 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?