Skip to content

Commit 334a1df

Browse files
update 23.2 documentation (#201)
1 parent aa54803 commit 334a1df

File tree

49 files changed

+588
-65
lines changed

Some content is hidden

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

49 files changed

+588
-65
lines changed

reporting-for-desktop/articles/report-designer/report-designer-for-winforms/add-extra-information/add-watermarks-to-a-report.md

Lines changed: 182 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,132 @@ title: Add Watermarks to a Report
33
---
44
# Add Watermarks to a Report
55

6-
This tutorial describes how to add watermarks to a report and use preprinted forms.
6+
DevExpress Reporting allows you to display text and picture watermarks on report pages. You can also specify an expression that assigns different watermarks to pages.
7+
8+
* How to add watermarks.
9+
10+
* How to specify watermark settings.
11+
12+
* How to use pre-printed forms.
713

814
![eurd-win-add-watermarks-result](../../../../images/eurd-win-add-watermarks-result.png)
915

1016
## <a name="addwatermark"></a>Add a Watermark to a Report
11-
To add a watermark to a report, do the following.
1217

13-
1. Switch to the [toolbar](../report-designer-tools/toolbar.md)'s **Page** page and press **Watermark**.
18+
Switch to the [toolbar](../report-designer-tools/toolbar.md)'s **Page** page and press **Watermark**.
1419

15-
![eurd-win-add-watermarks-use-toolbox](../../../../images/eurd-win-add-watermarks-use-toolbox.png)
16-
2. In the invoked **Watermark** dialog, select either the **Text Watermark** or **Picture Watermark** tab, depending on the type of watermark you wish to add.
17-
18-
For a text watermark, specify the text, direction and font options.
19-
20-
![eurd-win-watermark-editor](../../../../images/eurd-win-watermark-editor.png)
20+
![eurd-win-add-watermarks-use-toolbox](../../../../images/eurd-win-add-watermarks-use-toolbox.png)
21+
22+
In the invoked **Watermark** dialog, select either the **Text Watermark** or **Picture Watermark** tab, depending on the type of watermark you wish to add.
23+
24+
## Specify Text Watermark Settings
25+
26+
Specify the following settings:
2127

22-
For a picture watermark, you need to specify an image. To do this, click the ellipsis button for the **Load image** option.
28+
![eurd-win-watermark-editor](../../../../images/eurd-win-watermark-editor.png)
2329

24-
![eurd-win-watermark-editor-picture](../../../../images/eurd-win-watermark-editor-picture.png)
30+
* Text
31+
32+
The watermark’s text.
33+
34+
* Direction
35+
36+
The incline of the watermark’s text.
37+
38+
* Font
39+
40+
The font of the watermark’s text.
41+
42+
* Color
43+
44+
The foreground color of the watermark’s text.
45+
46+
* Size
47+
48+
The size of the watermark’s text.
49+
50+
* Bold
51+
52+
Formats the watermark’s text as bold.
53+
54+
* Italic
55+
56+
Formats the watermark’s text as italic.
57+
58+
* Position
59+
60+
Specifies whether a watermark should be printed behind or in front of page content.
61+
62+
* Transparency
63+
64+
The transparency of the watermark’s text.
65+
66+
* Id
67+
68+
The unique identifier of a watermark used to specify the watermark in the WatermarkId property (See the Manage Watermark Collection section for details).
69+
70+
* Page Range
71+
72+
The range of pages which contain a watermark.
73+
74+
Click **OK** to add a watermark to the watermark collection. The added watermark is automatically displayed in the report in Preview mode.
75+
76+
> [!NOTE]
77+
> A report can display only one watermark on a report page.
78+
79+
## Specify Picture Watermark Settings
80+
81+
Specify an image. Click the **Load image** option’s **Browse** button.
82+
83+
![eurd-win-watermark-editor-picture](../../../../images/eurd-win-watermark-editor-picture.png)
2584

26-
In the invoked **Select Picture** dialog, select the file containing the image that you wish to use as a watermark and click **Open**. Next, specify the size mode and alignment options for the picture.
85+
In the invoked **Select Picture** dialog, select the file containing the image that you wish to use as a watermark and click **Open**.
2786

28-
Additionally, for both textual and picture watermarks, you can adjust the transparency, position (in front of or behind the document content), and the page range in which the watermark will be printed.
87+
![eud-select-picture-dialog](../../../../images/eud-select-picture-dialog.png)
88+
89+
Specify the following picture options:
90+
91+
![eud-specify-picture-watermark-settings](../../../../images/eud-specify-picture-watermark-settings.png)
92+
93+
* Size Mode
94+
95+
The mode in which a picture watermark is displayed.
96+
97+
* Tiling
98+
99+
Specifies whether a picture watermark should be tiled.
100+
101+
* Horizontal Alignment
29102

30-
> [!NOTE]
31-
> The **Transparency** property is unavailable when you specify an SVG image.
103+
Specifies the horizontal alignment of the watermark.
104+
105+
* Vertical Alignment
106+
107+
Specifies the vertical alignment of the watermark.
108+
109+
* Position
110+
111+
Specifies whether a watermark should be printed behind or in front of page content.
112+
113+
* Transparency
114+
115+
The transparency of the watermark’s image. The **Transparency** property is unavailable when you specify an SVG image.
116+
117+
* Id
118+
119+
The unique identifier of a watermark used to specify the watermark in the WatermarkId property (See the Manage Watermark Collection section for details).
120+
121+
* Page Range
122+
123+
The range of pages which contain a watermark.
124+
125+
> [!NOTE]
126+
> A report can display only one watermark on a report page.
127+
128+
Click **OK** to add a watermark to the watermark collection. The added watermark is automatically displayed in the report in Preview mode.
129+
130+
### <a name="preprintedform"></a>Supply a Preprinted Form
32131

33-
## <a name="preprintedform"></a>Supply a Preprinted Form
34132
You can use a picture watermark as a template, to display an image of the preprinted form on the report's body at design time.
35133

36134
To display a watermark at design time, switch to the [toolbar](../report-designer-tools/toolbar.md)'s **View** page and activate **Watermark**.
@@ -43,4 +141,71 @@ The following image illustrates a report with a watermark shown at design-time t
43141

44142
Place report controls on the report's body according to the layout of the preprinted form.
45143

46-
![eurd-win-add-a-template-watermark-result](../../../../images/eurd-win-add-a-template-watermark-result.png)
144+
![eurd-win-add-a-template-watermark-result](../../../../images/eurd-win-add-a-template-watermark-result.png)
145+
146+
### Supported Image Formats
147+
148+
A picture watermark supports the following formats:
149+
150+
* BMP
151+
* JPG / JPEG / JPE / JFIF
152+
* GIF
153+
* TIF / TIFF
154+
* PNG
155+
* ICO
156+
* DIB
157+
* RLE
158+
* EMF / WMF
159+
* SVG
160+
161+
## Combine Text and a Picture in One Watermark
162+
163+
You can display both text and a picture in one watermark.
164+
165+
For example, create a watermark and specify its text and picture settings.
166+
167+
Set position of the text to In front:
168+
169+
![Position In front](../../../../images/infront-text-position.png)
170+
171+
Set position of the picture to Behind:
172+
173+
![Position Behind](../../../../images/behind-image-position.png)
174+
175+
As a result, the image is displayed behind the table, while the text is in front of the content:
176+
177+
![Display text and image watermarks in one page](../../../../images/watermark-text-infront-image-behind.png)
178+
179+
## Display a Specific Watermark in a Report
180+
181+
**Watermark Id** allows you to specify a watermark from the collection to display in the report. This property has a priority over the watermark’s **Page Range** property.
182+
183+
Create two watermarks in the Watermarks collection editor.
184+
185+
![Create two watermarks](../../../../images/add-watermarks-in-the-collection-editor.png)
186+
187+
Set Watermark Id to Watermark2 (the Id option's value)
188+
189+
![Display the second watermark in the collection](../../../../images/propery-grid-watermark-id.png)
190+
191+
The image below shows the result.
192+
193+
![Display specific watermark](../../../../images/display-specific-watermark-example.png)
194+
195+
## Display Watermarks According to the Specified Condition
196+
197+
Bind **Watermark Id** to an expression to apply watermarks stored in the collection to specific report pages.
198+
199+
Create the “First page watermark”, “Even page watermark”, and “Odd page watermark” watermarks with the following settings:
200+
201+
![Create three watermarks](../../../../images/bind-watermarks-to-expression--ui.png)
202+
203+
Specify the expression in the report’s WatermarkId property:
204+
205+
`Iif([Arguments.PageIndex]=0,'Watermark_0',Iif([Arguments.PageIndex]%2=0,'Watermark_1','Watermark_2'))`
206+
207+
![Specify the binding expression](../../../../images/specify-watermark-expression-in-the-expression-editor.png)
208+
209+
The image below shows the result.
210+
211+
![Display different watermarks](../../../../images/watermarks-expression-example.png)

reporting-for-desktop/articles/report-designer/report-designer-for-winforms/provide-interactivity.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ title: Provide Interactivity
66
The documents in this section provide information on the interactive features that enable report customization in Print Preview.
77

88
* [Create Drill-Down Reports](provide-interactivity/create-drill-down-reports.md)
9+
* [Create Drill-Through Reports](provide-interactivity/create-drill-through-reports.md)
910
* [Sort a Report in Print Preview](provide-interactivity/sort-a-report-in-print-preview.md)
1011
* [Content Editing in Print Preview](provide-interactivity/edit-content-in-print-preview.md)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Create Drill-Through Reports
3+
---
4+
# Create Drill-Through Reports
5+
6+
Follow this tutorial to create a _drill-through report_ (a user can click a Category entry to invoke a detail report with Products). This report type keeps the original report compact while still allowing access to more detailed information.
7+
8+
The tutorial involves two main steps:
9+
10+
- Add a master-detail relationship between "Categories" and "Products" reports within one project.
11+
- Use detail report parameters to filter records based on the selected category.
12+
13+
![Drill-Through report](../../../../images/drill-through-result.png)
14+
15+
## Add a Master-Detail Relationship between Reports
16+
17+
Define a master-detail relationship between _Category_ and _Product_ reports within a single project:
18+
19+
- Select the XRControl's element (**Table Cell** in this example) in the main report.
20+
- Set its **Action** property to **NavigateToReportAction**.
21+
- Assign the **ReportSource** property to a detail report instance.
22+
23+
![Specify the Navigate to Report action](../../../../images/specify-navigate-to-report-action.png)
24+
25+
If you switch to **Preview**, you can click on a _Category_ value in the table. The **Preview** window navigates to the detail report that contains all _Product_ entries. The next step explains how to filter this list.
26+
27+
![Drill-Through report preview](../../../../images/detail-report-navigation.png)
28+
29+
A Breadcrumb control automatically appears below the Document Viewer toolbar and allows you to navigate back to the original report.
30+
31+
![Breadcrumb navigation](../../../../images/breadcrumb-control-navigation.png)
32+
33+
## Specify Parameter Binding to Display Required Data
34+
35+
You can specify parameters during detail report navigation. Use the **Parameter Bindings** property to limit displayed records (such as products) to a selected category.
36+
37+
To invoke the **Parameter Binding Collection Editor**, click the ellipsis button in the **Parameter Bindings** property. Within this editor, click the **Sync** button to automatically obtain detail report parameters and set **Binding** to the data field or parameter of the original report.
38+
39+
![Parameter Binding Collection Editor](../../../../images/parameter-binding-editor.png)
40+
41+
Set **Binding** to the _CategoryID_ field.
42+
43+
![Specify Parameter Binding](../../../../images/specify-binding.png)
44+
45+
Set the following filter string in the detail report to display product records for the selected category.
46+
47+
![Set filter string](../../../../images/set-filter-string.png)
48+
49+
## Result
50+
51+
Switch to **Preview** and click on a category entry in the master report. The **Preview** navigates to the detail report that displays only products related to the selected category.
52+
53+
![Drill-Through report](../../../../images/drill-through-result.png)

reporting-for-desktop/articles/report-designer/report-designer-for-winforms/use-expressions/functions-in-expressions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This topic lists the functions that you can use in an [expression](expressions-o
1313
| Avg(Value) | Evaluates the average of the values in the collection. | [Products].Avg([UnitPrice]) |
1414
| Count() | Returns the number of objects in a collection. | [Products].Count() |
1515
| Exists() | Determines whether the object exists in the collection. | [Categories][[CategoryID] == 7].Exists() |
16+
| Join() | Concatenates all Expression values in the _Collection_ based on the specified _Condition_ (optional) into a single string separated by the specified _Separator_ (optional). If you do not specify a _Separator_, the function uses a comma.<br>The function has the following overloads:<br>`[Collection][Condition].Join(Expression)`<br>`[Collection][Condition].Join(Expression, Separator)`| The following expression concatenates _CompanyName_ field values within a report grouped by the _CategoryID_ field into a single string separated by a semicolon:<br>`[][[CategoryID] == [^.CategoryID]].Join([CompanyName], ';')`|
1617
| Max(Value) | Returns the maximum expression value in a collection. | [Products].Max([UnitPrice]) |
1718
| Min(Value) | Returns the minimum expression value in a collection. | [Products].Min([UnitPrice]) |
1819
| Single() | Returns an object if it is the only element in a collection. | [Accounts].Single() is not null |

0 commit comments

Comments
 (0)