void chart1_NeedDataSource(object sender, EventArgs e)
{
List<
Product
> products = new List<
Product
>();
products.Add(new Product("Parka L", 120));
products.Add(new Product("Parka M", 100));
products.Add(new Product("Parka S", 132));
Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
Telerik.Reporting.Chart defChart = (Telerik.Reporting.Chart)procChart.ItemDefinition;
defChart.IntelligentLabelsEnabled = false;
ChartSeries serie = new ChartSeries();
serie.Type = ChartSeriesType.Pie;
serie.Clear();
serie.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.ItemLabels;
foreach (Product lst in products)
{
ChartSeriesItem item = new ChartSeriesItem();
item.YValue = (double)lst.QuantityInStock;
item.Name = (string)lst.Name;
item.Appearance.Exploded = true;
item.Label.TextBlock.Text = (string)lst.Name + " - #%";
serie.Items.Add(item);
}
defChart.Series.Add(serie);
}
It's a crosstab with grouping, can I set one row bold?
= (Fields.income_monthly10 + Fields.income_monthly9 + Fields.income_monthly8 + Fields.income_monthly7 + Fields.income_monthly6 + Fields.income_monthly5 + Fields.income_monthly4 + Fields.income_monthly3 + (CDbl(Fields.income_annual1) /12) + (CDbl(Fields.income_annual2) /12) ))
Hi,
How can i center the page in reportviewer? i can't find the property to set it,it seems always to be left of the reportviewer.
I use the 2011Q3 version in Silverlight.
Thanks.
System.Drawing.Printing.
PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();
ReportProcessor reportProcessor = new ReportProcessor();
reportProcessor.PrintController = standardPrintController;
reportProcessor.PrintReport(report, printerSettings);
Our exception logging :
---EXCEPTIONS----------
[OutOfMemoryException]
Out of memory.
---STACK TRACE----------
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at Telerik.Reporting.Processing.ReportPrintDocument.OnPrintPage(PrintPageEventArgs eventArgs)
at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Telerik.Reporting.Processing.ReportProcessor.PrintReport(IReportDocument reportDocument, PrinterSettings printerSettings)
at CLGroup.Intranet.DataFacade.Print.ExecutePrint.ExecutePrintDocument() PrinterName : \\EMVMIIS01\GELAS01 BranchId : 11 Feature : InvoicePrint