This is a migrated thread and some comments may be shown as answers.

How do you create/add a report book...

5 Answers 687 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emrys
Top achievements
Rank 1
Emrys asked on 10 Sep 2013, 08:06 PM
I'm trying to create a report book but I'm not sure how to do it.  I reviewed the documentation on report books but there doesn't seem to be any examples on creating one.

Any assistance would be greatly appreciated.

5 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 13 Sep 2013, 12:23 PM
Hello Robert,

Basically, the ReportBook combines already created reports. For more details how to use the ReportBook, please check:

  • The example installed under C:\Program Files (x86)\Telerik\Reporting Q2 2013\Examples\CSharp\ReportLibrary\ReportBook;
  • The help articles about the Report Book;

Let us know if you have any further questions.

 

Regards,
Nasko
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Madona
Top achievements
Rank 1
answered on 25 Oct 2013, 09:17 AM
my telerik installation does not have examples, I have installed without it because I were having problems to install it with examples.
so I'm having difficulties to use reportbook at my siverlight aplication.

when I try to call the reportbook class it is not available at my project but I'm able to create a simple report.

when I try to import "using Telerik.Reporting.ReportBook"
I get the erro message "The type or namespace name 'ReportBook' does not exist in the namespace 'Telerik.Reporting' (are you missing an assembly reference?)".

from the telerik.reporting I only have option to use Processing and Service, but I'm needing the Reportbook why it is not available?

I also have tried to add the Telerik.Reporting.ddl to my project but I get the erro message  "Telerik.Reporting.dll as it was not built against Silverlight runtime".

so how I'm suposse to use the Reportbook at my project?


P.s.: I'm using Telerik Reporting Q2 2012.


I hope your answer.


0
Stef
Telerik team
answered on 29 Oct 2013, 12:33 PM
Hello Madona,

In order to install the demos you need to have installed SQL server and enabled SQL Server Browser service. There is a full Silverlight demo including:
  • ReportLibrary project containing all report definitions and referencing Telerik.Reporting.dll. In this project you can create a ReportBook object as well as single report definitions;
  • Silverlight project containing a UserControl on which is placed a Silverlight ReportViewer control (referencing Telerik.ReportViewer.Silverlight and the required assemblies). For more details check the How to: Add report viewer to a Silverlight application help article.
  • Web project hosting the Silverlight xap and referencing the ReportLibrary project. It is a proper place to set the WCF Report Service that is required by the Silverlight ReportViewer to display reports. More about the required references and settings for the WCR Report Service can be found in the How to: Host the Service in IIS help article.

You may find helpful the following video tutorial Getting Started with the Silverlight Report Viewer for Telerik Reporting (requires Flash)

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Todd
Top achievements
Rank 1
answered on 15 Jan 2014, 03:32 PM

Hello,

I am also having trouble evaluating the Report Book with my trial for Reporting (using Silverlight).

It did not show up in the VS Toolbox as described here:

and it is not showing up in the Telerik.Reporting namespace as described here:

I have looked at the example Silverlight project and can't figure out how the Report Book is wired into the Silverlight project.

The video you mention does not cover the Report Book at all.

Thanks in advance..

Todd

0
Stef
Telerik team
answered on 16 Jan 2014, 06:45 PM
Hi Todd,

this is a quote from your support ticket on the same question:
"When the ReportBook object is created, pass the objects assembly qualified name to the Silverlight ReportViewer.Report. For example in our local demos we will use the mentioned ReportLibrary.ReportBook object, which inherits Telerik.Reporting.ReportBook:
ReportBook:
 public class ReportBook : Telerik.Reporting.ReportBook
    {
   
        public ReportBook()
        {
            this.Reports.Add(new Dashboard());
            this.Reports.Add(new ProductCatalog());
            Report report1 = DeserializeReport(@"C:\Program Files (x86)\Telerik\Reporting Q3 2013\Report Designer\Examples\Sales.trdx");
            this.Reports.Add(report1);
        }
   
        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;
   
            }
        }
    }
--------------------------------------------
Silverlight ReportViewer:
 <telerik:ReportViewer Grid.Row="1" x:Name="ReportViewer1"
                            Width="1000"
                            telerikControls:StyleManager.Theme="{Binding SelectedItem, ElementName=ThemeSelector}"
                            ReportServiceUri="../ReportService.svc"
                            Report="Telerik.Reporting.Examples.CSharp.ReportBook, CSharp.ReportLibrary" />
"

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Emrys
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Madona
Top achievements
Rank 1
Stef
Telerik team
Todd
Top achievements
Rank 1
Share this question
or