• Reporting: assembly scoped user functions

    Wednesday, February 18, 2009 by Steve Tsokev | Comments 0

    Hi guys,

    We've been having requests for the feature in the title for some time and finally we were able to introduce it in the Q3 SP2 release. 

    Generally user functions allow you to extend the default behavior of the Telerik Reporting engine. They are public static  (Public Shared in VB.NET) methods that should always return a value and can take an arbitrary number of input parameters depending on your needs. They are public static, because they are not related to a concrete instance of a report. They are executed by the expression engine and work in the context of the report processing. ...

  • Reporting Q3 SP2 - a few small improvements for a service pack

    Monday, February 02, 2009 by Steve Tsokev | Comments 4

    Hi guys!

    I just decided to bring you up to speed with our Q3 SP2 release. On top of the improvements we introduced with the new rendering engine in the Q3 version, we have prepared a few small surprises for the Q3 SP2 as well:

    • optimization of image/pdf/rtf rendering. As you know, Q3 2008 came with new paging logic that introduced a superior and more sophisticated algorithm for calculation and inspection of pages before they are rendered. Now we take a step further and make it possible to decrease the rendering time with almost 30% when PageCount is not required. ...

  • Reporting: How to set default value for a multivalue parameter

    Friday, January 16, 2009 by Steve Tsokev | Comments 10

    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. ...

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

    Wednesday, January 07, 2009 by Steve Tsokev | Comments 0
    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:

    1.  This has not been reported prior to our latest release
    2. 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 ...
  • Hide duplicates in a column

    Thursday, November 27, 2008 by Steve Tsokev | Comments 1
    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 e.g.:
    Before:

    column1  column2  column3
    -----------------------------
    phone      nokia         green
    phone     siemens       brown
    phone    samsung       red
    car         toyota          black
    car         mitsubishi     silver

     

    After:

    column1  column2  column3
    -----------------------------
    phone     nokia           green
                 siemens        brown
                 samsung         red
    car         toyota          black
                  mitsubishi     silver

     

    Basically we should pass in the column1 ...

  • Using Report parameters UI to sort by column

    Friday, November 21, 2008 by Steve Tsokev | Comments 0
    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 : ...

  • New Reporting rendering engine - a foundation for what it is to come next year

    Wednesday, November 12, 2008 by Steve Tsokev | Comments 0
    Hi guys!

    We suppose that you have already downloaded our Q3 version (released last week) and you're enjoying the new rendering engine. For those of you who missed what's new, I'll list it here once again:

    • Official release of the Project Upgrade Wizard - no more upgrade hassles. Our Upgrade Wizard would take care of that for you.

      New Report Rendering Engine, offering:
       
    • Excellent rendering performance
      The new rendering engine optimizes the usage of system resources (memory consumption and processor loads) during data processing and report generation to meet the high demands of our enterprise ...
  • Telerik Reporting - Tips and Tricks

    Friday, October 31, 2008 by Steve Tsokev | Comments 2
    What better source for tips and tricks for your beloved Reporting product, than a blog spot right from the kitchen where the product is ‘mixed’. As of this post, we would like to start a small series of tips and tricks that make a developers’ life sweeter. We’re not going to discuss general topics, so if you’re looking for answers for one of those questions – please review our documentation and our forums.
    As you can guess, the sub-report item, which lets you display one report within another report is widely used in Telerik Reporting.  It lets you compose ...
  • Custom Toolbar for the Web ReportViewer

    Thursday, October 23, 2008 by Steve Tsokev | Comments 5

    Our insatiable commitment to deliver more than expected in every aspect of our products resulted in me being curious, if we are as flexible as we think and whether one can always achieve his goal be it out of the box or with custom solution using our API and other controls if necessary.

    Hmmm what could that custom solution be – how about a custom Toolbar for our web ReportViewer. For those of you, who are unfamiliar with our Web ReportViewer , here is a short description – it is designed to render Telerik Reports within ASP.NET projects and it ...

  • Send Telerik Report as email attachment

    Tuesday, September 02, 2008 by Steve Tsokev | Comments 2

    The Report Viewers (Win and Web) do not support sending of reports via e-mail out-of-the-box. To mail a report you have to first render the report programmatically into a convenient format and then attach it to a mail message. Here is a possible way of how to achieve this by using the SmtpClient object:

     

    void MailReport(Telerik.Reporting.Report report, string from, string to, string subject, string body)   
       {   
          string mimeType;   
          string extension;   
          Encoding encoding;   
       
          byte[] reportBytes =   
          ReportProcessor.Render("PDF", report, null, out mimeType, out extension, out encoding);   
                 
          MemoryStream ms = new MemoryStream(reportBytes);   ...