Telerik Forums
Reporting Forum
1 answer
127 views

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

Steve
Telerik team
 answered on 18 Apr 2012
4 answers
563 views
Hi there
  Can somebody please tel me how i can capture the Preview button click event. This will help me to solve lots of issues i am facing in my report development.
1. A report parameter that value should be sent to the business layer and to repopulate the report datasource based on that.
2. Is there anyway to turn off caching of report so that it always look for the code to bind datasource. 


Steve
Telerik team
 answered on 18 Apr 2012
1 answer
135 views
Hi,

After switching BrowserHttp to ClientHttp in our SL app, we got "Session Expired" problem from Telerik Report Viewer.
Any suggestions/answers will be highly appreciated.

Thanks.

Regards,
NNT
Steve
Telerik team
 answered on 18 Apr 2012
1 answer
67 views
Hi,

After switching BrowserHttp to ClientHttp in our SL app, we got "Session Expired" problem from Telerik Report Viewer.
Any suggestions/answers will be highly appreciated.

Thanks.

Regards,
NNT
Steve
Telerik team
 answered on 18 Apr 2012
1 answer
190 views
Hi.. I have the following code with is throwing an out of memory exception.
The report returns just 300 records.. (12 fields)   and only 10 records 'hit' this code to load an image.
Any ideas? 

   private void pictureBox1_ItemDataBinding(object sender, EventArgs e)
        {
           Telerik.Reporting.Processing.ReportItemBase itemBase = (Telerik.Reporting.Processing.ReportItemBase)sender;
           string file = itemBase.DataObject["PHOTO_filename"] as string;




           if (!String.IsNullOrEmpty(file) && File.Exists("S:\\Conference\\photos_noncrm\\" + file))
           {
               Image image1 = Image.FromFile(@"S:\\Conference\\photos_noncrm\\" + file);


               this.pictureBox1.Value = image1;
           }
           else
           {


               this.pictureBox1.Value = "=Fields.PHOTO";


           }
        }
Petio Petkov
Telerik team
 answered on 17 Apr 2012
3 answers
158 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
94 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
341 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
40 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
104 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
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?