Skip to content

Commit 7c29bb5

Browse files
Merge pull request #120 from epolevikov/master
Updates for Report Designer | Use Barcodes and Federation Data Source
2 parents 793a262 + f7470b4 commit 7c29bb5

File tree

299 files changed

+1752
-633
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+1752
-633
lines changed

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The Report Designer allows you to create data-bound reports and provides a rich
1414
* [Save Reports](report-designer-for-winforms/save-reports.md)
1515
* [Introduction to Banded Reports](report-designer-for-winforms/introduction-to-banded-reports.md)
1616
* [Bind to Data](report-designer-for-winforms/bind-to-data.md)
17-
* [Create Popular Reports](report-designer-for-winforms/create-popular-reports.md)
17+
* [Create Reports](report-designer-for-winforms/create-reports.md)
1818
* [Configure Design Settings](report-designer-for-winforms/configure-design-settings.md)
1919
* [Use Report Elements](report-designer-for-winforms/use-report-elements.md)
2020
* [Shape Report Data](report-designer-for-winforms/shape-report-data.md)

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/bind-a-report-to-a-federated-master-detail-data-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Once you rename the query, update the report's **Data Member** property.
6969

7070
![](../../../../images/eurd-data-federation-report-wizard-table-report.png)
7171

72-
3. Select data members for the report and its [detail reports](../../../../articles/report-designer/report-designer-for-winforms/create-popular-reports/create-a-master-detail-report-use-detail-report-bands.md). Select data fields to display in the report and click **Finish**. You can also go to the [next page](../../../../articles/report-designer/report-designer-for-winforms/report-designer-tools/report-wizard/table-report/add-grouping-levels.md) to continue layout creation.
72+
3. Select data members for the report and its [detail reports](../../../../articles/report-designer/report-designer-for-winforms/create-reports/master-detail-reports-with-detail-report-bands.md). Select data fields to display in the report and click **Finish**. You can also go to the [next page](../../../../articles/report-designer/report-designer-for-winforms/report-designer-tools/report-wizard/table-report/add-grouping-levels.md) to continue layout creation.
7373

7474
![](../../../../images/eurd-data-federation-master-detail-report-wizard-select-fields.png)
7575

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/bind-a-report-to-a-join-based-federated-data-source.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ This topic describes how to create a federated data source that joins data from
4242

4343
![](../../../../images/eurd-data-federation-query-builder-select-fields.png)
4444

45+
You can specify a different name for a field. Click the field's **Alias** cell and type the alias.
46+
47+
![](../../../../images/eurd-data-federation-query-builder-specify-alias.png)
48+
49+
Use the grid's empty line to add an unbound field to a query. Click the field's ellipsis button to invoke the [Expression Editor](../use-expressions.md) and construct an expression that specifies the field's value.
50+
51+
![](../../../../images/eurd-data-federation-query-builder-construct-expression.png)
52+
4553
7. Click **OK** to close the Query Builder. Click **Finish** to complete the Data Source Wizard.
4654

4755
The Wizard creates a new **FederationDataSource** that includes the single query. This data source becomes available in the [Report Explorer](../../../../articles/report-designer/report-designer-for-winforms/report-designer-tools/ui-panels/report-explorer.md)'s **Components** node. The [Field List](../../../../articles/report-designer/report-designer-for-winforms/report-designer-tools/ui-panels/field-list.md) reflects the data source structure.
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
---
2+
title: Bind a Report to a Transformation-Based Data Source
3+
author: Eugene Polevikov
4+
---
5+
6+
# Bind a Report to a Transformation-Based Data Source
7+
8+
If you bind a report to a [JSON](bind-a-report-to-json-data.md), [Object](bind-a-report-to-an-object-data-source.md), [Entity Framework](bind-a-report-to-an-entity-framework-data-source.md), or [XPO](bind-a-report-to-an-xpo-persistent-object.md) data source that contains a collection property, you can flatten the data source structure:
9+
10+
![](../../../../images/federated-data-source-transformation.png)
11+
12+
This tutorial illustrates how to use the **Federation Data Source**'s **Transformation** mode to flatten a JSON Data Source that contains a collection property.
13+
14+
## Create a Report and Bind it to a Data Source
15+
16+
1. [Create a new blank report](../add-new-reports.md)
17+
18+
2. [Add a JSON data source](bind-a-report-to-json-data.md)
19+
20+
This tutorial uses the following JSON string:
21+
22+
```
23+
[
24+
{
25+
"CategoryId": 1,
26+
"CategoryName": "Beverages",
27+
"Description": "Soft drinks, coffees, teas, beers, and ales",
28+
"Products": [
29+
{
30+
"ProductId": 1,
31+
"ProductName": "Chai",
32+
"SupplierId": 1,
33+
"CategoryId": 1,
34+
"QuantityPerUnit": "10 boxes x 20 bags",
35+
"UnitPrice": 18.0000,
36+
"UnitsInStock": 39,
37+
"UnitsOnOrder": 0,
38+
"ReorderLevel": 10,
39+
"Discontinued": false,
40+
"Supplier": null
41+
},
42+
{
43+
"ProductId": 2,
44+
"ProductName": "Chang",
45+
"SupplierId": 1,
46+
"CategoryId": 1,
47+
"QuantityPerUnit": "24 - 12 oz bottles",
48+
"UnitPrice": 19.0000,
49+
"UnitsInStock": 17,
50+
"UnitsOnOrder": 40,
51+
"ReorderLevel": 25,
52+
"Discontinued": false,
53+
"Supplier": null
54+
}
55+
]
56+
},
57+
{
58+
"CategoryId": 2,
59+
"CategoryName": "Condiments",
60+
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings",
61+
"Products": [
62+
{
63+
"ProductId": 3,
64+
"ProductName": "Aniseed Syrup",
65+
"SupplierId": 1,
66+
"CategoryId": 2,
67+
"QuantityPerUnit": "12 - 550 ml bottles",
68+
"UnitPrice": 10.0000,
69+
"UnitsInStock": 13,
70+
"UnitsOnOrder": 70,
71+
"ReorderLevel": 25,
72+
"Discontinued": false,
73+
"Supplier": null
74+
},
75+
{
76+
"ProductId": 4,
77+
"ProductName": "Chef Anton's Cajun Seasoning",
78+
"SupplierId": 2,
79+
"CategoryId": 2,
80+
"QuantityPerUnit": "48 - 6 oz jars",
81+
"UnitPrice": 22.0000,
82+
"UnitsInStock": 53,
83+
"UnitsOnOrder": 0,
84+
"ReorderLevel": 0,
85+
"Discontinued": false,
86+
"Supplier": null
87+
}
88+
]
89+
}
90+
]
91+
```
92+
93+
The [Field List](../report-designer-tools/ui-panels/field-list.md) displays the created JSON data source.
94+
95+
![](../../../../images/federated-data-source-json-field-list.png)
96+
97+
## Create Data Federation and Transform the Data Source
98+
99+
1. Click the report's smart tag, expand the **DataSource** property's drop-down menu, and click **Add Report Data Source**.
100+
101+
![](../../../../images/federated-data-source-add-federated-data-source.png)
102+
103+
2. In the invoked **Data Source Wizard**, select **Data Federation** and click **Next**.
104+
105+
![](../../../../images/data-federation-wizard-choose-data-federation.png)
106+
107+
3. On the next page, click **Add Query**.
108+
109+
![](../../../../images/federated-data-source-add-query.png)
110+
111+
4. In the invoked [Query Builder](../report-designer-tools/query-builder.md), select the **Transformation** query type. Select the data source or query that contains columns you want to transform. Select the **Transform** check box next to the column you need to unfold and flatten. The bottom pane allows you to specify the aliases for the generated columns.
112+
113+
![](../../../../images/federated-data-source-transformation-query.png)
114+
115+
Click **OK** to create the query and click **Finish** to create the data source.
116+
117+
The **Field List** displays the created Federation Data Source.
118+
119+
![](../../../../images/federated-data-source-result.png)
120+
121+
## Prepare the Report Layout
122+
123+
1. Set the **Landscape** orientation for report pages. Select the report and switch to the **Properties** panel. Enable the **Landscape** property.
124+
125+
![Set Landscape Page Orientation](../../../../images/federated-data-source-landscape-orientation.png)
126+
127+
2. Drop data fields from the **Field List** onto the report's [Detail](../introduction-to-banded-reports.md) band. Hold CTRL or SHIFT and click the fields to select multiple fields.
128+
129+
![Drop Fields Onto the Report](../../../../images/federated-data-source-drop-fields.png)
130+
131+
3. Add a **ReportHeader** band to the report. Right-click the report and select **Insert Band** / **ReportHeader**.
132+
133+
![Add Report Header](../../../../images/federated-data-source-insert-reportheader.png)
134+
135+
4. Create headers for the report columns. Select data fields and drop them onto the added **ReportHeader** band with the right mouse button.
136+
137+
![Drop Table Headers](../../../../images/federated-data-source-drop-headers.png)
138+
139+
5. Change header titles as necessary. Double-click a cell and type the new title.
140+
141+
![Change Header Titles](../../../../images/federated-data-source-change-header-titles.png)
142+
143+
6. Resize report columns. Select cells and drag their edges.
144+
145+
![Resize Table Cells](../../../../images/federated-data-source-resize-cells.png)
146+
147+
7. Change the header cells' appearance. Select cells and specify the following properties:
148+
149+
| Property | Value |
150+
| --- | --- |
151+
| **Foreground Color** | White |
152+
| **Background Color** | DimGray |
153+
| **Padding** | 10, 10, 0, 0 |
154+
| **Font** | Arial, 9pt, style=Bold |
155+
156+
![Change Cell Appearance](../../../../images/federated-data-source-change-cell-appearance.png)
157+
158+
8. Change the band heights to match the table rows. Select the bands and drag their edges the same way as for the table cells.
159+
160+
9. Add a style for the table's even rows. Select **TableRow2** in the **Properties** window, expand the **Styles** property, and select **New** for the **Even Style** property. Then select **Style1** and set the **Background Color** property to **216, 216, 216**.
161+
162+
![Set Even Style](../../../../images/federated-data-source-set-even-style.png)
163+
164+
10. Format the price values. Select the cell that displays the **Products_UnitPrice** value and set its [Format String] to **{0:c2}**.
165+
166+
![Specify Cell Format](../../../../images/federated-data-source-set-format-string.png)
167+
168+
The report is ready. Upper-level data source records are repeated as many times as there are flattened records:
169+
170+
![Records Repeated](../../../../images/federation-data-source-report-result.png)

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/bind-a-report-to-a-union-based-federated-data-source.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,12 @@ You can create a federated data source for your report to display data combined
4848
<!--image-->
4949
![](../../../../images/DataFederationUnion-Common-Fields.png)
5050

51-
6. Enable check boxes for the data fields you want to include in the query result set.
52-
53-
<!--image-->
54-
55-
7. Rename fields.
51+
6. Rename fields.
5652

5753
<!--image-->
5854
![](../../../../images/DataFederation-FieldAliases.png)
5955

60-
8. Click **OK** to close the Query Builder. Click **Finish** to complete the Data Source Wizard.
56+
7. Click **OK** to close the Query Builder. Click **Finish** to complete the Data Source Wizard.
6157

6258
The Wizard creates a new **FederationDataSource** that includes the single **Customers** query. This data source becomes available in the [Report Explorer](../../../../articles/report-designer/report-designer-for-winforms/report-designer-tools/ui-panels/report-explorer.md)'s **Components** node. The [Field List](../../../../articles/report-designer/report-designer-for-winforms/report-designer-tools/ui-panels/field-list.md) reflects the data source structure.
6359

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/bind-to-data/use-embedded-fields-mail-merge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This adds the selected format to the target data field by separating it from the
4343
## <a name="supportedcontrols"></a>Supported Controls
4444
You can apply the mail merge feature to the **Text** of the following report controls:
4545

46-
* [Bar Code](../use-report-elements/use-bar-codes.md)
46+
* [Barcode](../use-report-elements/use-bar-codes.md)
4747
* [Character Comb](../use-report-elements/use-basic-report-controls/character-comb.md)
4848
* [Check Box](../use-report-elements/use-basic-report-controls/check-box.md)
4949
* [Label](../use-report-elements/use-basic-report-controls/label.md)

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/create-popular-reports.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: Create Reports
3+
author: Anna Gubareva
4+
---
5+
# Create Reports
6+
7+
This section contains tutorials that explain how to create different reports.
8+
9+
## Basic Reports
10+
11+
### [Table Reports](create-reports/table-reports.md)
12+
![](../../../images/table-report-preview.png)
13+
14+
### [Vertical Reports](create-reports\vertical-reports.md)
15+
![](../../../images/vertical-report-preview.png)
16+
17+
## Reports with Hierarchical Data
18+
19+
### [Master-Detail Reports with Detail Report Bands](create-reports/master-detail-reports-with-detail-report-bands.md)
20+
![](../../../images/master-detail-with-detail-report-bands-preview.png)
21+
22+
### [Master-Detail Reports with Subreports](create-reports/master-detail-reports-with-subreports.md)
23+
![](../../../images/master-detail-with-subreport-preview.png)
24+
25+
### [Hierarchical Reports](create-reports/hierarchical-reports.md)
26+
![](../../../images/hierarchical-report-preview.png)
27+
28+
## Invoice Reports
29+
30+
### [Invoices](create-reports/invoices.md)
31+
![](../../../images/manual-invoice-preview.png)
32+
33+
### [Invoices from Templates](create-reports/invoices-from-templates.md)
34+
![](../../../images/template-invoice-preview.png)
35+
36+
## Cross-Tab Reports
37+
38+
### [Cross-Tab Reports](create-reports/cross-tab-reports.md)
39+
![](../../../images/cross-tab-report-preview.png)
40+
41+
### [Balance Sheets](create-reports/balance-sheets.md)
42+
![](../../../images/balance-sheet-report-preview.png)
43+
44+
## Multi-Column Reports
45+
46+
### [Labels and Badges](create-reports/labels-and-badges.md)
47+
![](../../../images/labels-and-badges-report-preview.png)
48+
49+
### [Multi-Column Reports](create-reports/multi-column-reports.md)
50+
![](../../../images/multi-column-report-preview.png)
51+
52+
## Interactive Reports
53+
54+
You can add interactive elements to your report to customize it in Print Preview:
55+
56+
### [Interactive E-Forms](create-reports/interactive-e-forms.md)
57+
![](../../../images/interactive-eform-preview.png)
58+
59+
> [!Note]
60+
> See the [Provide Interactivity](provide-interactivity.md) section for information on how to provide drill-down and drill-through functionality in your reports.
61+
>
62+
> See [Use Report Parameters](shape-report-data/use-report-parameters.md) for instructions on how to submit parameter values in Print Preview to customize your reports.
63+
64+
## Layout Features
65+
66+
### [Reports with Cross-Band Content and Populated Empty Space](create-reports/reports-with-cross-band-content-and-populated-empty-space.md)
67+
![](../../../images/cross-band-and-populated-empty-space-report-preview.png)
68+
69+
### [Reports with PDF content](create-reports/reports-with-pdf-content.md)
70+
![](../../../images/report-with-pdf-content-preview.png)
71+
72+
### [Reports with a Visual PDF Signature](create-reports/reports-with-visual-pdf-signature.md)
73+
![](../../../images/report-with-a-visual-pdf-signature.png)

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/create-popular-reports/create-a-balance-sheet.md renamed to interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/create-reports/balance-sheets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: Create a Balance Sheet
33
author: Anna Gubareva
44
---
5-
# Create a Balance Sheet
5+
# Balance Sheets
66

77
This tutorial describes how to use the Cross Tab control to create a **Balance Sheet** report.
88

99
![](../../../../images/eurd-win-balance-sheet-report.png)
1010

1111
> [!Tip]
12-
> This tutorial shows how to configure a Cross Tab using the [Report Wizard](../report-designer-tools/report-wizard.md). See [Create a Cross-Tab Report](create-a-cross-tab-report.md) for information on how to use the Cross-Tab Report Wizard.
12+
> This tutorial shows how to configure a Cross Tab using the [Report Wizard](../report-designer-tools/report-wizard.md). See the [Cross-Tab Reports](cross-tab-reports.md) tutorial for information on how to use the Cross-Tab Report Wizard.
1313
1414
## Add a Cross Tab and Bind It to Data
1515

interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/create-popular-reports/create-a-cross-tab-report.md renamed to interface-elements-for-desktop/articles/report-designer/report-designer-for-winforms/create-reports/cross-tab-reports.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
title: Create a Cross-Tab Report
2+
title: Cross-Tab Reports
33
author: Anna Gubareva
44
---
5-
# Create a Cross-Tab Report
5+
# Cross-Tab Reports
66

77
This tutorial describes how to use the Cross Tab control to create a **Sales Summary** report.
88

99
![](../../../../images/eurd-win-cross-tab-report-result-final.png)
1010

1111
> [!TIP]
12-
> This tutorial demonstrates how to use the Cross-Tab Report Wizard. See [Create a Balance Sheet](create-a-balance-sheet.md) for information on how to configure a Cross Tab on the Design Surface.
12+
> This tutorial demonstrates how to use the Cross-Tab Report Wizard. See [Balance Sheets](balance-sheets.md) tutorial for information on how to configure a Cross Tab on the Design Surface.
1313
1414
## Add a Cross-Tab Report
1515

0 commit comments

Comments
 (0)