Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
natakazakova authored Oct 3, 2024
1 parent 72d6fa8 commit 2c6a6f5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,45 +46,45 @@ When you export a report to PDF, the report elements have no role. Assistive sof

Set the control’s **Accessible Role** property to **Heading 1 - Heading 6** before you export a report.

![Set AccessibleRole in Property Grid](~/images/label-assesible-role.png)
![Set AccessibleRole in Property Grid](~/reporting-for-desktop/images/label-assesible-role.png)

In the PDF Export Options dialog, set the **PDF/UA Compatibility** property to **PDF/UA1** to conform the exported PDF document to PDF/UA specification. Then, export the report to PDF format.

The image below shows the result. **Accessible Role** is set to **Heading 2**, and the screen reader treats **Label** as a “level two” heading in the exported document:

![Exported report in the screen reader](~/images/accessible-exported-document-with-label.png)
![Exported report in the screen reader](~/reporting-for-desktop/images/accessible-exported-document-with-label.png)

#### Define Table Accessible Role

You can specify how Table should be treated by screen readers in the exported PDF document. For this, set the control's **Accessible Role** property to **Table** before you export a report.

![Set AccessibleRole in Property Grid](~/images/table-assesible-role.png)
![Set AccessibleRole in Property Grid](~/reporting-for-desktop/images/table-assesible-role.png)

In the PDF Export Options dialog, set the **PDF/UA Compatibility** property to **PDF/UA1** to conform the exported PDF document to PDF/UA specification. Then, export the report to PDF format.

The image below shows the result. **Accessible Role** is set to **Table**, and the screen reader treats Table as a table in the exported document:

![Exported report in the screen reader](~/images/accessible-exported-document-with-table.png)
![Exported report in the screen reader](~/reporting-for-desktop/images/accessible-exported-document-with-table.png)

#### Define Table Row Accessible Role

You can specify how Table Row should be treated by screen readers in the exported PDF document.

Before you export a report, set the **Table**'s **Accessible Role** property to **Table** to define a control as a table. Then, specify **Table Row**'s **Accessible Role**:

![Set AccessibleRole in Property Grid](~/images/table-row-assesible-role.png)
![Set AccessibleRole in Property Grid](~/reporting-for-desktop/images/table-row-assesible-role.png)

In the PDF Export Options dialog, set the **PDF/UA Compatibility** property to **PDF/UA1** to conform the exported PDF document to PDF/UA specification. Then, export the report to PDF format.

The image below shows the result. **Table Row**'s **Accessible Role** is set to **Table Header Row**, and the screen reader treats **Table Row** as a header row of the table in the exported document:

![Exported report in the screen reader](~/images/accessible-exported-document-with-tablerow.png)
![Exported report in the screen reader](~/reporting-for-desktop/images/accessible-exported-document-with-tablerow.png)

#### Define Table Cell Accessible Role

Before you export a report, set the **Table**'s **Accessible Role** property to **Table** to define a control as a table. Then, specify the **Table Cell**'s **Accessible Role** property:

![Set AccessibleRole in Property Grid](~/images/tablecell-assesible-role.png)
![Set AccessibleRole in Property Grid](~/reporting-for-desktop/images/tablecell-assesible-role.png)

> [!NOTE]
> **Accessible Role** is not in effect for cells merged with the Cell's **Row Span** property.
Expand All @@ -93,4 +93,4 @@ In the PDF Export Options dialog, set the **PDF/UA Compatibility** property to *

The image below shows the result. **Table Cell**'s b is set to **Table Header Cell**, and the screen reader treats Table Cell with "Bill to:" text as a header cell in the exported document:

![Exported report in the screen reader](~/images/accessible-exported-document-with-table.png)
![Exported report in the screen reader](~/reporting-for-desktop/images/accessible-exported-document-with-table.png)
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Carried Forward/Brought Forward summaries refer to the practice of automatically

As the following image illustrates, calculated running summaries are transferred from the report’s page footer to the header of the next page. Values are calculated for the group and are specified by the user. It can involve grouping by monthly expenses, or grouping by month with the cumulative balance of total expenses.

![CarryOver Scheme](../../../../images/carryover-scheme.png)
![CarryOver Scheme](~/reporting-for-desktop/images/carryover-scheme.png)

In Reporting controls, Carried Forward/Brought Forward summaries are represented by the `sumCarryoverSum(Expression)`. function.

Expand All @@ -20,12 +20,12 @@ The example shows how to display transactions for a user account. These transact

1. Place the `Label` controls in group header/group footer bands. Enable group header/group footer bands’ **Repeat Every Page** option.

![](../../../../images/xrlabel-in-repetitive-bands.png)
![](~/reporting-for-desktop/images/xrlabel-in-repetitive-bands.png)

2. Bind the `XRLabel` controls to the following expression:

`sumCarryoverSum([Amount])`

This allows DevExpress Reports to display the balance on each page.

![](../../../../images/display-transactions-for-a-user-account.png)
![](~/reporting-for-desktop/images/display-transactions-for-a-user-account.png)
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ The following tutorial explains how to bind a chart’s constant line to an expr

Select the **Chart** control. The “f” button appears next to the selection. Click this button to invoke the Expression Editor:

![Invoke the Expression Editor](../../../../images/xrcontrol-invoke-the-expression-editor.png)
![Invoke the Expression Editor](~/reporting-for-desktop/images/xrcontrol-invoke-the-expression-editor.png)

In the invoked editor, specify the following expression for the **Axis Value** property and click OK.

`[CategoriesProducts].Avg([UnitPrice])`

![Bind a constant line to an expression](../../../../images/specify-expression-in-the-expression-editor.png)
![Bind a constant line to an expression](~/reporting-for-desktop/images/specify-expression-in-the-expression-editor.png)

## See the Result

Run the application. Constant lines show average product prices in each category.

![Result](../../../../images/average-price-example.png)
![Result](~/reporting-for-desktop/images/average-price-example.png)

0 comments on commit 2c6a6f5

Please sign in to comment.