Create report with title page

6 posts, 0 answers
  1. AnneArents
    AnneArents avatar
    14 posts
    Member since:
    Jan 2010

    Posted 06 Apr 2011 Link to this post


    I have a report, which works fine, and now I want to add a title page to it.
    Basically the first page has to be completely different from the rest of the report.
    No detail section, different datasource, etc.

    Is this possible?

  2. Steve
    Steve avatar
    10941 posts

    Posted 11 Apr 2011 Link to this post

    Hello CJ Scholten,

    You can use a Report Header section, which as explained in the Understanding Report Sections help article is printed just once, at the beginning of the report. To avoid the Page Header section from appearing on the first page, set its PrintOnFirstPage Property to false and if you want to make sure only the Report Header is printed on the first page, you can alter its PageBreak Property to After. In the Report Header section, you can use a separate Data Item such as SubReport or Table that would be bound to your different data source.
    Another option is to use a Report Book and create a separate report that would act as "title page" as first report in the report book collection.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Elias
    Elias  avatar
    2 posts
    Member since:
    Mar 2014

    Posted 18 Mar 2014 in reply to Steve Link to this post

    Hi, related this topic. I have to create a reportbook. the control is missing in the toolbox, could you please explain to me how can I do that. I already have the separated reports. How can I merge it. I see in other forums that I have to add by code but I dont know where.
  5. Nasko
    Nasko avatar
    909 posts

    Posted 21 Mar 2014 Link to this post

    Hello Elias,

    The Report Book is not a report item and as such it doesn't have a corresponding Toolbox item. In order to use it you have to create a new report book object in your application, add reports to the object's report collection, and then display it in the Report Viewer.

    You can gather multiple reports in a Report Book, which will be displayed and processed as a single document at once. The Report Book online documentation can be found here: Report Book help. There you can find general information on how to use a Report Book, what is its purpose and some specific things like paging and passing parameters. There is also a section describing how to use the Report Book at run-time. This is the part that can be useful when the component is used within your application.

    In the following code snippet a Report Book is created and a report is assigned to it and this is done in the application. The developer has the option to modify the report definitions/data sources etc., before adding it to the Report Book:

    Using a class containing the report definition:
    ReportBook reportBook = new ReportBook();
    Report report1 = new MyReport();

    Using xml report definition (.trdx):
    ReportBook reportBook = new ReportBook();
    Report report1 = DeserializeReport("MyReport.trdx");
    //where the DeserializeReport method's definition is:
    public Report DeserializeReport(string path)
        System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings();
        settings.IgnoreWhitespace = true;
        using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(path, settings)) {
            Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
            Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
            return report;

    Then you can display the Report Book item by assigning it to a Report Viewer as you'd do with any normal report:
    Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
    instanceReportSource.ReportDocument = reportBook;
    this.ReportViewer1.ReportSource = instanceReportSource;

    Additionally, you may find useful the Report Book demo located in the C:\Program Files (x86)\Telerik\Reporting Q1 2014\Examples\CSharp\ReportLibrary\ReportBook folder on your machine.


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

  6. Miguel
    Miguel avatar
    3 posts
    Member since:
    Nov 2014

    Posted 02 Jul 2015 Link to this post

    Hi, y have a report with PageNumber but no shows number, i-m using Q1 2014
  7. Stef
    Stef avatar
    2923 posts

    Posted 03 Jul 2015 Link to this post

    Hi Miguel,

    Based on your update in the PageNumber, retrive value forum thread, I believe you have already resolved the issue.
    For anyone having the same issue, please check the linked thread.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner