<system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> <add assembly="Telerik.Reporting, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> </assemblies> </compilation>...<pages> <controls> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> <add tagPrefix="tlkReporting" namespace="Telerik.ReportViewer.WebForms" assembly="Telerik.ReportViewer.WebForms"/> </controls><tlkReporting:ReportViewer ID="ReportViewer1" runat="server" Height="500px" Width="100%" Visible="False" />
When publishing to the live server the telerik reports do not have Excel and PDF exporting options available in the web report viewer. Works fine on testing server.
I am using the latest demo version.
How can this be fixed?
Hi,
I am using Telerik Reporting Q2 2011 with Silverlight 4. In NeedDataSource event I am hiding a field at run-time if the data source returns a “Null” value for it. It works fine and report viewer does not show that field. However, when I export the report in any format then the exported file contains this field.
I also tried to do it in other way and set visible = false at design time for the field and set Visible = true at run-time, if data source have value for it. It displays the field successfully in the report viewer but does not show it at all in the exported file.
Please suggest a possible solution how I can overcome this problem.
Thanks!
Adil
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);}