• .NET

    Bind Your Telerik Reports to XML Data

    February 06, 2009 Share
    One of the cool things about Telerik Reporting is that you can bind it to just about any kind of data source. Regardless of whether your data is stored in a SQL Server database, an XML document, or a simple text file, if you can read it into one of the supported data source types then you can bind it to your report. Since XML is a often used to store data, I thought it might be helpful to demonstrate how to bind your report to the data in an XML file using LINQ to XML. To get started, create a class...
  • .NET

    Reporting: How to set default value for a multivalue parameter

    January 16, 2009 Share
    Generally when you want to set a default value for a parameter, you use the Value property of the parameter (this.ReportParameters["MyParam"].Value), but what to set when you want all values to be selected by default  i.e you have a multivalue parameter? You can do that by providing an ArrayList containing all your values to the report parameter Value property. For consistency of the Tips & Tricks series, I am going to use the project from the Using Report parameters UI to sort by column blog post. Let's make the SortByColumn parameter accept multivalues by setting the MultiValue property to True. We...
  • .NET

    "The strange case of Adobe Acrobat" or why do images in Telerik Reports get fuzzy when exported to PDF

    January 07, 2009 Share
    First, I would like to wish you all Happy New Year! Hope it brings you everything you have asked for! Now up to today's words (post) of wisdom: In the last couple of days a few people reported that images placed in Telerik Report, which normally look ok, start looking fuzzy when exported to PDF. We got scared for two reasons:  This has not been reported prior to our latest release We've introduced new rendering mechanism in the latest release When you combine those, you cannot help but feel that we have somehow messed things up. Fortunately, after a quick investigation, the problem proved...
  • .NET

    Hide duplicates in a column

    November 27, 2008 Share
    In some cases you might want to hide duplicates in a single "column" - for example if you group by a field, it would be nice to present the data in a more clean way.
  • .NET

    Using Report parameters UI to sort by column

    November 21, 2008 Share
    Our 'series' of tips and tricks for Telerik Reporting continues with this neat approach to sort the report by column. We would create a sample report using the AdventureWorks database that comes with our examples and use a single table with few columns that are easy to remember namely FirstName, LastName, Title .. you know the drill :) In order to use the built-in parameters area of the report, we would need to create a report Parameter that lists the column names. We can do that by creating a Business object that holds this for us:   public class ColumnSelector : DataTable     {        ...