...
Info | ||
---|---|---|
| ||
For more information on installing and configuring OfficeWriter Reporting Services Integration, see Installation or contact your System Administrator. |
Note |
---|
A sample RDL and Template file are available for download in the Samples section. |
OfficeWriter Designer.NET Toolbar
...
- Open Microsoft Excel
- Go to the OfficeWriter Designer.NET tab and click Open.
- If your report definition file was saved on a local or network drive, choose Open From Disk from the drop down.
- If your RDL file was deployed to Reporting services, choose Open From Server.
In the Report Browser dialog box, type in your report server's URL or Domain name and click Refresh. This will load all the available report folders into the list box. Navigate to your report file, select it, and click Ok.
Once the RDL file is opened in the Designer, there are two ways to design your report.
Anchor | ||||
---|---|---|---|---|
|
When you open the report, the Designer.NET parses the RDL for information about the data sets and makes that information available while you are working in Excel. Data sets will appear in a drop-down list and you will be able to insert fields from those data sets into the Excel template as data placeholders called data markers.
For this tutorial we will use an RDL that was created in Visual Studio containing a data set with the following query:
Code Block |
---|
SELECT Production.Product.ProductID, Production.Product.Name, Production.ProductListPriceHistory.ListPrice,
Production.Product.DaystoManufacture
FROM Production.Product
INNER JOIN Production.ProductListPriceHistory
ON Production.Product.ProductID = Production.ProductListPriceHistory.ProductID |
- Place your curse in the cell A2 and click inside it. This is where we will insert the data marker.
- Click Data Markers on the Designer.NET toolbar and locate your data set from the drop-down list.
- Hover over your data set to see the fields that are available.
- Select the ProductId field to insert the data marker into cell A2. Your template should now look like this:
- Place your cursor in cell B2 cell and click inside it.
- Click Data Markers again, hover over your data set, and select the Name field. Your template should now look like this:
- Place your cursor in cell C2 cell and click inside it.
- Click Data Markers, hover over the data set, and select the ListPrice field.
- Place your cursor in cell D2 cell and click inside it.
- Click Data Markers, hover over your data set, and select the Days to Manufacture field.
- In cell A1 type Product ID, in cell B1 type Product Name, in C1 type List Price, and in D1 type Days to Manufacture.
Your finished report template should look like this:
Anchor | ||||
---|---|---|---|---|
|
With the Designer.NET you can use the Import Template button to import a pre-existing .xlsx template file containing data markers and formatting.
Click Import Template and browse to the file you want to import.
- You will receive the following dialog box confirming the import:
- The sample report will look like the following when it is imported.
Publish and View Your Report
...
- Open a browser and go to the Reporting Services Report Manager (usually installed at http://<server address>/Reports).
- Navigate to where you published your report.
- Select the report. Reporting Sevices will display the report but only show you the data set.
- From the export option drop-down, choose Excel designed by OfficeWriter.
- When prompted, click Open . Excel will open and display your report the way you created it.
Anchor | ||||
---|---|---|---|---|
|
RDL: Excel-QuickStartRDL2008R2.rdl
Template: ExcelQuickStartTemplate.xlsx
Note |
---|
If If you are using the VBA original OfficeWriter Designer see Create an Excel Report from an Existing RDL using VBA Designer |
...