2010/05/05

Stimulsoft Simple Tabular Report using Business Objects

Stimulsoft reporting provides a set of powerful reporting tools for Microsoft Visual Studio .NET 2008 and 2010;
these tools are available for windows forms as well as web forms. They provide many useful features such as an easy
to use report designer and native support for exporting to PDF, Word, Excel, XPS and many other formats. Stimulsoft
reporting now supports binding to any .NET class; this feature is called business objects in the report designer.
Crystal Report and Microsoft reports are great for day to day reporting, but if you need to create reports with
cross-tabs and drill down, Ajax, support for barcodes and connecting to more than one report source at the same time,
then Stimulsoft reporting is a very good solution. They also have a feature where end users can create their own reports
for Adhoc reporting. All these features make Stimulsoft reports a good choice for business intelligence reporting.



In this tutorial I will show you how to create a Master Detail report using the Business Objects (.NET classes). Show how
to create an ADO.NET data model, register entities as business objects with Stimulsoft report designer and design a
tabular report and save the report definition file to run the newly created report.



The data for this sample report will come from the
Northwind sample database
provided by Microsoft.



The demo version of Stimulsoft reporting tools can be downloaded from the website at
http://stimulsoft.com/ReportsNetDownloads.aspx.




Steps are required in order to create a Master Detail report using Business Objects



Add an ADO.NET data model to your project


2. Generate Entity Model for Northwind database


3. Register Business Objects with Report Desinger


4. Design new report using Business Objects


5. Associate Customers to child orders


6. Add Master and Detail tables to the report layout


7. Run new report using Business Objects






1. Add an ADO.NET data model to your project


• Make sure you are targeting .NET Framework version 3.5 SP1 or higher


• Right-click on project name in Solution Explorer


• Select Add and then select New Item


• Select ADO.NET Entity Date Model


• Type the name of the model file, for this tutorial it is going to be Northwind.edmx


• Click on Add button



2. Generate Entity Model for Northwind database


• Select Generate from database and click Next


• Choose the connection string for Northwind or build our own connection string using instructions given on
http://www.connectionstrings.com


• Select all database objects that you want to report on. For this tutorial we are going to select only the tables.


• Type the namespace of the ADO.NET entity model as NorthwindModel or any other namespace or our choice and click on Finish.


• Visual studio will now scan the database schema and generate all required Entity model classes and definitions.


• Browse the Entity model to see various entities that are created.


• We will be using Customers entity to list all customers in our report.




3. Register Business Objects with Report Desinger


• Create a new form in your project


• Make sure you have added the reference to required Stimulsoft Reports.Net dlls by right-clicking on the project and selecting add reference.


• Add a button called Design Report and another button called Run Report.


• Create an event handler for the Design Report button.


• Add some code to get a list of customers and list of orders from those customers using Northwind entity model (For simplicity
we are getting list of all customers, in practice you would be using LINQ to form a query by following tutorials provided
Microsoft at
http://msdn.microsoft.com/en-us/library/bb738636.aspx )


• The Entity Data Model shows that Customers has a property classes Orders, it also shows there are 1 to many relationship
between customers and orders.


• Create a new StiReport object and load the report definition from “C:\MyReport.mrt” if the file exists (For this tutorial
we have fixed the location of report file for simplicity)


• Register the list of customers and list of orders with the report object.


• Stimulsoft report designer scans the definition of customer and determines that it has child orders, this will be very
helpful while designing the report.


• Call the Design function of the report object to launch the designer.



     using Stimulsoft.Report;



   /// <summary>

   /// Event Handler for Design Report button

   /// </summary>

   private void Design_Click(object sender, EventArgs e)

   {

     // Get Report Object

     StiReport report = GetReport();

     // Launch Report Deginer for the report

     report.Design();

   }



   /// <summary>

   /// This function Loads report definition from a fixed location

   /// and registers all Business Objects in the report definition

   /// </summary>

   ///

   /// StiReport object for the report

   ///


   private StiReport GetReport()

   {

     // Create a new object of StiReport Class

     StiReport report = new StiReport();



     // Load the report definition file from C:\MyReport.mrt if the file exists

     // This tutorial assumes you have are storing the report definition in a fixed location

     // If the file does not exists then Designer will allow you to save the your newly created report in the location

     if (File.Exists("C:\\MyReport.mrt"))

     {

       report.Load("C:\\MyReport.mrt");

     }



     // Get of List of all customers and List of all orders from database using ADO.net Enity data model

     NorthWindEntities nw = new NorthWindEntities();

     List customers = nw.Customers.ToList();

     List orders = nw.Orders.ToList();

     nw.Dispose();

     // Register Business Objects for Customers and Orders in the report
     report.RegBusinessObject("Northwind", "Customers", customers);
     report.RegBusinessObject("Northwind", "Orders", orders);


     // Return report to calling function

       return report;

     }


4. Design new report using Business Objects


• On run the project by pressing F5 on your keyboard or click on Start Debugging button in Visual Studio

• Click on Design Report button to show the Stimulsoft report designer

• Brower to Dictionary and Expand Business Objects

• Northwind is shown here because we specified category of Customers while registering business objects using RegBusinessObject function

• Expand Northwind to see customers and orders

• Expand Customers to see all the fields that belong to customers

• Expand Orders to see all the fields that belong to orders


5. Associate Customers to child orders


• In order to associate Customer to their child orders we need to show orders under customers

• Right click on Customers and select New Business Object

• Select Child of Business Object

• Select Orders from the list of children of Customers

• Make any changes alias of orders or to columns inside Orders or add new calculated columns

• Click Ok to continue




6. Add Master and Detail tables to report layout


• Drag Customers and drop into the report layout to add customers table to the design

• Select all the fields that you want to show in the report

• Drag Orders under customers and drop into the report layout to add orders table to the design

• Select all the fields that you want to show in the report

• Report designer automatically shows details grouped by master

• Change background color of Customers to differentiate it from details

• Click on Preview tab to see the report preview

• Click on Save Report icon save to C:\MyReport.mrt

• Close the report designer







7. Run new report using Business Objects


• Add a event handler for Run Report button

• Create new StiReport object and load the report definition from “C:\MyReport.mrt”
if the file exists (For this tutorial we have fixed the location of report file for simplicity)

• Add code to get a list of customers and list of orders from those customers using Northwind
entity model (For simplicity we are getting list of all customer, in practice you would be using
LINQ to form a query by following tutorials provided Microsoft at

http://msdn.microsoft.com/en-us/library/bb738636.aspx
) )

• The Entity Data Model shows that’s Customers has a property classes Orders, it also shows there
are a 1 to many relationship between customers and orders.

• Create new StiReport object and load the report definition from “C:\MyReport.mrt”
if the file exists (For this tutorial we have fixed the location of report file for simplicity)

• Register the list of customers and list of orders with the report object.

• Call the Show function of the report object to launch the report viewer.

     using Stimulsoft.Report;

     /// <summary>

     /// Event Handler for Run Report button

     /// </summary>

     private void btnRun_Click(object sender, EventArgs e)

     {

       // Get Report Object

       StiReport report = GetReport();

       // Show report to user

       report.Show();

     }





   /// <summary>

   /// This function Loads report definition from a fixed location

   /// and registers all Business Objects in the report definition

   /// </summary>

   ///

   /// StiReport object for the report

   ///


   private StiReport GetReport()

   {

     // Create a new object of StiReport Class

     StiReport report = new StiReport();



     // Load the report definition file from C:\MyReport.mrt if the file exists

     // This tutorial assumes you have are storing the report definition in a fixed location

     // If the file does not exists then Designer will allow you to save the your newly created report in the location

     if (File.Exists("C:\\MyReport.mrt"))

     {

       report.Load("C:\\MyReport.mrt");

     }



     // Get of List of all customers and List of all orders from database using ADO.net Enity data model

     NorthWindEntities nw = new NorthWindEntities();

     List customers = nw.Customers.ToList();

     List orders = nw.Orders.ToList();

     nw.Dispose();



     // Register Business Objects for Customers and Orders in the report

     report.RegBusinessObject("Northwind", "Customers", customers);

     report.RegBusinessObject("Northwind", "Orders", orders);



     // Return report to calling function

     return report;

   }









The author of the article is Chirag Nirmal and his linkedin profile is
http://www.linkedin.com/in/chiragn









Stimulsoft Simple Tabular Report using Business Objects

Stimulsoft reporting provides a set of powerful reporting tools for Microsoft Visual Studio .net 2008 and 2010;
these tools are available for windows forms as well as web forms. They provide many useful features such as an easy
to use report designer and native support for exporting to PDF, Word, Excel and various other formats. Stimulsoft
reporting now supports binding to any .net class; this feature is called business objects in the report designer.
Crystal Report and Microsoft reports are great for day to day reporting, but if you need to create reports with
cross-tabs and drill down, Ajax, support for barcodes and connecting to more than one report source at the same time,
then Stimulsoft reporting is a very good solution. They also have a feature where end users can create their own reports
for Adhoc reporting. All these features make Stimulsoft reports a good choice for business intelligence reporting.



In this tutorial I will show to create a simple tabular report using the Business Objects (.net classes). Show how
to create an ADO.NET data model, register entities as business objects with stimulsoft report designer and design a
tabular report and save the report definition file to run the newly created report.



The data for this sample report will come from the
Northwind sample database
provided by Microsoft.



The demo version of Stimulsoft reporting tools can be downloaded from the website
http://stimulsoft.com/ReportsNetDownloads.aspx.





Steps are required in order to create a simple tabular report using Business Objects



1. Add an ADO.NET data model to your project


2. Generate Entity Model for Northwind database


3. Register Business Objects with Report Desinger


4. Design new report using Business Objects


5. Run new report using Business Objects






1. Add an ADO.NET data model to your project


• Make sure you targeting .NET Framework version 3.5 SP1 or higher


• Right-click on the project name in Solution Explorer


• Select Add and then select New Item


• Select the ADO.NET Entity Date Model


• Type the name of the model file, for this tutorial it is going to be Northwind.edmx


• Click on the Add button



2. Generate Entity Model for Northwind database


• Select Generate from database and click Next


• Choose the connection string for northwind or build our own connection string using instructions given on
http://www.connectionstrings.com


• Select all database objects that you want to report on. For the sake of this tutorial we are going to select only the tables.


• Type the namespace of the ADO.net entity model as NorthwindModel or any other namespace or our choice and click on Finish.


• Visual studio will now scan the database schema and generate all required Entity model classes and definitions.


• Browse the Entity model to see various entities that are created.


• We will be using Customers entity to list all customers in our report.




3. Register Business Objects with Report Desinger


• Create a new form in your project


• Make sure you have added the reference to required stimulsoft.net dlls by right-clicking on the project and selecting add reference.


• Add a button called Design Report and another button called Run Report.


• Create an event handler for design report button.


• Add a code to get a list of customers using Northwind entity model (For simplicity we are getting list of all customers, in practice you would be
using LINQ to form a query by following tutorials provided Microsoft at
http://msdn.microsoft.com/en-us/library/bb738636.aspx )


• Create new a StiReport object and load the report definition from “C:\MyReport.mrt” if the file exists (For this tutorial we have fixed the location of report file for simplicity)


• Register the list of customers with the report object.


• Call the Design function of the report object to launch the designer.



   using Stimulsoft.Report;

  /// <summary>

   /// Event Handler for Design Report button

   /// </summary>

   private void Design_Click(object sender, EventArgs e)

   {

    // Get Report Object

    StiReport report = GetReport();

    // Launch Report Deginer for the report

    report.Design();

   }



   /// <summary>

   /// This function Loads report definition from a fixed location

   /// and registers all Business Objects in the report definition

   /// </summary>

   ///

   /// StiReport object for the report

   ///


   private StiReport GetReport()

   {

    // Create a new object of StiReport Class

    StiReport report = new StiReport();



   // Load the report definition file from C:\MyReport.mrt if the file exists

   // This tutorial assumes you have are storing the report definition in a fixed location

   // If the file does not exists then Designer will allow you to save the your newly created report in the location

   if (File.Exists("C:\\MyReport.mrt"))

   {

    report.Load("C:\\MyReport.mrt");



   // Get of List of all customers from database using ADO.net Enity data model

   NorthWindEntities nw = new NorthWindEntities();

   List customers = nw.Customers.ToList();

   nw.Dispose();



   // Register Business Objects for Customers in the report

   report.RegBusinessObject("Northwind", "Customers", customers);



   // Return report to calling function

   return report;

   }


4. Design new report using Business Objects


• On run the project by pressing F5 on your keyboard or click on Start Debugging button in Visual Studio


• Click on Design Report button to show the Stimulsoft report designer


• Brower to Dictionary and Expand Business Objects


• Northwind is shown here because we specified category of Customers while registering business objects using RegBusinessObject function


• Expand Northwind to see customers and expand customers to see all the fields that belong to customers


• Drag Customers and drop into the report layout to add customers table to the design


• Select all the fields that you want to show in the report


• Click on Preview tab to see the report preview


• Click on Save Report icon save to C:\MyReport.mrt


• Close the report designer





5. Run new report using Business Objects


• Add a event handler for Run Report button


• Add code to get a list of customers using Northwind entity model (For simplicity we are getting list of all customer, in practice you would be using LINQ to form a query by following tutorials provided Microsoft at http://msdn.microsoft.com/en-us/library/bb738636.aspx )


• Create new StiReport object and load the report definition from “C:\MyReport.mrt” if the file exists (For this tutorial we have fixed the location of report file for simplicity)


• Register the list of customers with the report object.


• Call the Show function of the report object to launch the report viewer.






   using Stimulsoft.Report;

   /// <summary>

   /// Event Handler for Run Report button

   /// </summary>

   private void btnRun_Click(object sender, EventArgs e)

   {

     // Get Report Object

     StiReport report = GetReport();

     // Show report to user

     report.Show();

   }



   /// <summary>

   /// This function Loads report definition from a fixed location

   /// and registers all Business Objects in the report definition

   /// </summary>

   ///

   /// StiReport object for the report

   ///


   private StiReport GetReport()

   {

     // Create a new object of StiReport Class

     StiReport report = new StiReport();



     // Load the report definition file from C:\MyReport.mrt if the file exists

     // This tutorial assumes you have are storing the report definition in a fixed location

     // If the file does not exists then Designer will allow you to save the your newly created report in the location

     if (File.Exists("C:\\MyReport.mrt"))

     {

     report.Load("C:\\MyReport.mrt");

     }



     // Get of List of all customers from database using ADO.net Enity data model

     NorthWindEntities nw = new NorthWindEntities();

     List customers = nw.Customers.ToList();

     nw.Dispose();



     // Register Business Objects for Customers in the report

     report.RegBusinessObject("Northwind", "Customers", customers);



     // Return report to calling function

     return report;

   }








The author of the article is Chirag Nirmal and his linkedin profile is
http://www.linkedin.com/in/chiragn









2010/03/30

Stimulsoft Company Announces Stimulsoft Reports version 2010.1 release.

March 29, 2010 -- Stimulsoft Company, an outstanding and leading manufacturer of software for business intelligence (reporting solutions for .NET, ASP.NET, WPF, Flex, PHP), has released version 2010.1 of Stimulsoft Reports. Stimulsoft Reports products help developers from commercial and non-profit organizations all around the world to be more productive and deliver feature-rich and flexible reports on time.

Stimulsoft Reports is the product line which includes reporting tools for .NET, ASP.NET, WPF.
Stimulsoft Reports.Net is used to generate reports from various data sources and can be used in Windows Forms, Stimulsoft Reports.Web is the reporting tool for creating reports in Web (ASP.NET), Stimulsoft Reports.Wpf suites tool for creating applications on the base of Windows Presentation Foundation technology, Stimulsoft Reports Designer.Web is the report designer for Web. Reports are fully compatible with all Stimulsoft reporting tools. In other words, if you create a report in Stimulsoft Reports.Net, then it can be opened and edited in both Stimulsoft Reports.Web and Stimulsoft Reports.Wpf. The product that includes all these editions is Stimulsoft Reports.Ultimate.

The new release brings the following changes and updates:
Unique ability to check a report for problems was added in Stimulsoft Reports. The report checker does not only inform a developer about the errors of compilations but provides multiple recommendations, messages, warnings, and advice about fixing the problems. So the issue can be immediately fixed by some of the ways offered.

Reporting tools are able to work with business objects. But, in previous versions, the report generator used a special conversion of business objects to the internal format. That slowed down the process of report rendering and problems appeared when creating complex business objects. In the new version of our products a new type of item in the data dictionary is introduced. It is the Business Objects.

Stimulsoft Reports completely supports the PDF/A format which is a subset of Adobe PDF and can be used for the long-term archiving of electronic documents.

In the new version of the report generator you will find multiple (more than 30) primitives. Among them are lines, arrows, flowcharts, basic shapes etc.

In previous versions of Stimulsoft Reports.Wpf only one theme was available. Now the themes such as Office 2010 White, Office 2010 Blue, Office 2007 Blue, Office 2007 Silver, Office 2007 Black, Office 2003 Blue, Office 2003 Silver, and Office 2003 Olive Green are added. New themes are available both in the report viewer and report designer.

Сustomers from Turkey might be pleased to discover that they are now able to use Stimulsoft in their native language. Now the products support 25 languages.

Pricing
Stimulsoft Reports products are available with license for $599,95 per developer seat. The license comes with technical support and free updates for the latest products versions for one year. Pricing of the Stimulsoft Reports.Ultimate, including all products of Stimulsoft Reports line is $1,199 per developer seat.

Additional information on Stimulsoft Reports, as well as documentation, Video tutorials and a free evaluation copy of the product is available at http://www.stimulsoft.com

2009/09/21

Stimulsoft Reports. New versions of reporting tools for .NET, Web, and WPF

Did it become necessary for you to build reports? You created them in Word, Excel, used special programming packages. It took so much time, efforts. You were nervous, suffered from insomnia. Deadline was near but your work was not complete. Finally, you got some result. But it did not meet your expectations. But reports were not good. And it was impossible to say yourself - yes, that's exactly what I wanted, that's exactly what my client wants. In fact, there are no hopeless situations. As they say, the one, who owns the information, owns the world.
Stimulsoft Company, a leading manufacturer of software for data processing and analysis, announces the release of version 2009.2 for products Stimulsoft Reports.Net, Stimulsoft Reports.Web, Stimulsoft Reports Designer.Web, Stimulsoft Reports.Wpf. As one can see from product names, Stimulsoft Reports.Net is used to generate reports from various data sources and can be used in Windows Forms and in ASP.NET, Stimulsoft Reports.Web is the reporting tool for creating reports in Web, Stimulsoft Reports.Wpf is the best tool for creating applications on the base of Windows Presentation Foundation technology, Stimulsoft Reports Designer.Web is the reports designer for Web. In general, Stimulsoft Reports is the line of reporting tools which can be used for rendering reports on different platforms. Reports are fully compatible with all Stimulsoft reporting tools. In other words, if you have created a report in Stimulsoft Reports.Net, then it can be opened and edited in both Stimulsoft Reports.Web and Stimulsoft Reports .WPF.
Do you think that there are reports which cannot be created? There is nothing impossible with Stimulsoft Reports. Great numbers of enhancements in products make them simpler and more flexible.
What are the changes in version 2009.2?
First of all, it is necessary to say about Stimulsoft Reports.Web reports viewer – WebViewerFx. This component is developed using the Flex technology and used to view reports. WebViewerFx has well thought-out, user-friendly interface, feature-rich, and, at last, it is good-looking. Using WebViewerFx it is possible to view reports, change report zoom. It allows printing reports. WebViewerFx can save reports to more than 20 different file formats. The viewer Demo is available at http://webfx.stimulsoft.com/WebViewerFx.aspx .
Stimulsoft Reports now supports additional 2 new export formats. These are SVG and MS PowerPoint. Royal Mail 4-state that is used for automatic mail sorting was also included. Starting with version 2009.2 reports can be saved in encrypted format.
The choice of supported languages has been expanded with Arabic, making the product accessible to more people in their native language.
Stimulsoft Reports.Web v2009.2, Stimulsoft Reports.Wpf v2009.2, and Stimulsoft Reports Designer.Web v2009.2 support cross-tabs.
Also some errors of previous versions were corrected. This made the products more robust.

2009/06/30

Stimulsoft Company today announces the release of a new product – Stimulsoft Reports.Wpf – the reporting tool for WPF.

Stimulsoft Reports.Wpf – is the reporting tool that allows creating feature-rich reports, edit them, save, print and export to different formats.

Stimulsoft Company strives for using the most advanced technologies, develops today trying to predict what user may need tomorrow. The reporting tool for WPF is the fully functional reporting tool that is developed on the base of Windows Presentation Foundation technology. This technology is getting more and more extended and popular.

Stimulsoft Reports.Wpf includes the set of features which makes the work with reports simple and handy:
- Intuitive and user-friendly interface;
- Work with multiline reports;
- Stylizing;
- User interface is localized into more than 20 languages;
- A report can be saved to file, string, array, database fields. Also reports can be saved as classes in C# and VB.NET programming languages;
- Rendered reports can be exported to more than 30 file formats (PDF, XPS, Word, Excel etc);
- Huge amount of components, unique set of properties presented only in Stimulsoft Reports.Wpf.

It is worth saying some words about the WpfViewer. Well thought-out design, animation, multiple delicate settings – all this make it maximally friendly, beautiful, quick and adjustable.

Stimulsoft Company today announces the release of a new product – Stimulsoft Reports.Wpf – the reporting tool for WPF.

Stimulsoft Reports.Wpf – is the reporting tool that allows creating feature-rich reports, edit them, save, print and export to different formats.

Stimulsoft Company strives for using the most advanced technologies, develops today trying to predict what user may need tomorrow. The reporting tool for WPF is the fully functional reporting tool that is developed on the base of Windows Presentation Foundation technology. This technology is getting more and more extended and popular.

Stimulsoft Reports.Wpf includes the set of features which makes the work with reports simple and handy:
- Intuitive and user-friendly interface;
- Work with multiline reports;
- Stylizing;
- User interface is localized into more than 20 languages;
- A report can be saved to file, string, array, database fields. Also reports can be saved as classes in C# and VB.NET programming languages;
- Rendered reports can be exported to more than 30 file formats (PDF, XPS, Word, Excel etc);
- Huge amount of components, unique set of properties presented only in Stimulsoft Reports.Wpf.

It is worth saying some words about the WpfViewer. Well thought-out design, animation, multiple delicate settings – all this make it maximally friendly, beautiful, quick and adjustable.

2009/05/28

Stimulsoft Reports Designer.Web




Stimulsoft reports has a web based report designer component that provides full report editing
capabilities inside a web browser. Thanks to this component called Designer.Web you can now
allow end users to edit reports to their requirements and save the report definition locally
or on the server. The best part of the Designer.Web is drag and drop deployment, all you need
to do is insert the designer component on an ASP.NET webform and write one line of code to start
allowing users to edit existing report or create their own reports. This feature would be extremely
useful for minor changes that would normally require developer intervention such as changing color,
font or alignment of text or adding a new field to the table or changing the location of the page
number.






The salient features of Stimulsoft Reports Designer.Web are:




1) Platform independent (runs on Adobe Flash®)


2) Drag and drop implementation and deployment


3) Option of saving report definition on the web server or on user’s computer


4) Extremely useful for minor changes and updates by end users


5) Extremely useful for global development teams


The official documentation and training videos can be found at:


Video Tutorials:
http://www.stimulsoft.com/ReportsDesignerWebVideos.aspx.

User Manual:
http://www.stimulsoft.com/Documentation/SRDesignerWebUserManual.En.Pdf.zip.

Download latest version of Report Designer.Web from
http://www.stimulsoft.com/Downloads.aspx.

The data for this sample report will come from the
AdventureWork sample database provided by Microsoft.

In this tutorial I will show you how easy it is to use the web designer with the following activities




1) Add Reports Designer.Web to your web page


2) Show Designer.Web on Edit button click


3) Create a simple table Report in Designer.Web


4) Add a new connection to the report


5) Add a Data Source to the report


6) Add a Table to the report


7) Preview and Save Report






1) Add Reports Designer.Web to your web page


• Drag and Drop StiWebDesinger1 from the toolbox to your webpage










2) Show Designer.Web on Edit button click


• Drag and Drop a button Standard ASP.NET button onto the page and type the text as “Edit Report”


• Add an event handler for the edit button and add the following line to show the Designer.Web


    protected void btnEdit_Click(object sender, EventArgs e)
{
StiWebDesigner1.Design(new Stimulsoft.Report.StiReport());
}


3) Create a simple table Report in Designer.Web


• Start your website in Debug mode by pressing the debug button on the Visual Studio toolbar or by pressing the F5 key


• Click on the Edit Report button


• Reports designer now opens inside Internet Explorer




src="Images\02.gif">


src="Images\03.gif">






4) Add a new connection to the report


• Select the Dictionary Tab on the right side of the reports designer


• Click on the New Item Icon and select a New Connection


• Select the SQL Connection and click OK


• Type the connection string for the AdventureWorks database


• Click test to confirm that the connection string is correct




src="Images\04.gif">


src="Images\05.gif">




5) Add a Data Source to the report


• Click on the New Item icon the Dictionary Tab and select New Data Source


• Select Data from the SQL Connection and Click Ok


• Type the name of the query in the Name field as Sales


• Type the SQL query in the Query Text Field


• Click on the Retrieve Columns to confirm that you have all the required columns


• Click Ok to see the Sales Datasource in the Dictionary Pane


• The following query has been used in the report


SELECT [SalesOrderID]


,[RevisionNumber]


,[OrderDate]


,[DueDate]


,[ShipDate]


,[Status]


,[OnlineOrderFlag]


,[SalesOrderNumber]


,[PurchaseOrderNumber]


,[AccountNumber]


,[CustomerID]


,[ContactID]


,[SalesPersonID]


,st.Name


,[BillToAddressID]


,[ShipToAddressID]


,[ShipMethodID]


,[CreditCardID]


,[CreditCardApprovalCode]


,[CurrencyRateID]


,[SubTotal]


,[TaxAmt]


,[Freight]


,[TotalDue]


,[Comment]


FROM [AdventureWorks].[Sales].[SalesOrderHeader] soh


Inner join [AdventureWorks].[Sales].[SalesTerritory] st on soh.TerritoryID = st.TerritoryID


src="Images\06.gif">


src="Images\07.gif">




6) Add a Table to the report


• Click on the Menu icon and Select New


• Select New Report with Wizard


• Select Standard Report and Click OK


• Expand the Connection and Select Sales as the Datasource


• Click Next to select columns


• Select all the columns required to be displayed


• Continue through all the steps with default settings or change them according to your requirements


• Click to see the final report design

src="Images\08.gif">


src="Images\09.gif">


src="Images\10.gif">


src="Images\11.gif">




7) Preview and Save Report


• Please remember to disable the popup blocker for the localhost


• Click on the preview tab and select Preview as HTML


• The report preview will open in a popup window


• Switch to the report designer window and click on the menu icon


• Now select “Save As”


• Click Save again if you have the trial version


• Select any location on the local drive to store the report


src="Images\13.gif">


src="Images\14.gif">


src="Images\15.gif">






Notes:


1) Save As is used to download the report definition on local user’s drive


2) Save is used to save the report on the server side




The author of the article is Chirag Nirmal and his linkedin profile is
http://www.linkedin.com/in/chiragn