Skip to content

Commit 97ad51f

Browse files
authored
Update report-book-parameters.md
1 parent 87d5ec1 commit 97ad51f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

designing-reports/report-book/report-book-parameters.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,32 @@ In the sample pictures below, you will see in few steps how to set a value for a
5050
* __When report parameters have unique names or the target parameters are merged:__ If a parameter is distinguishable by its Name property or the Name denotes several merged parameters, refer to the parameter directly by the value of its Name property.
5151

5252
````C#
53+
#region Set_Values_For_Unique_Or_Mergable_ReportParameters_UriReportSource
5354
var UriReportSource = new Telerik.Reporting.UriReportSource();
54-
UriReportSource.Uri = "MyReportBook.trdp";
55+
UriReportSource.Uri = "MyReportBook.trbp";
5556

5657
// Passing a value for a unique or repeating report parameter that should have one and the same value
5758
// for all reports part of the report book through the report source
5859
UriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ProductCategory", "Bikes"));
60+
#endregion
5961
````
6062
````VB.NET
63+
'#Region Set_Values_For_Unique_Or_Mergable_ReportParameters_UriReportSource
6164
Dim UriReportSource As New Telerik.Reporting.UriReportSource()
62-
UriReportSource.Uri = "MyReportBook.trdp"
65+
UriReportSource.Uri = "MyReportBook.trbp"
6366

6467
' Passing a value for unique Or repeating report parameter that should have one And the same value
6568
' for all reports part of the report book through the report source
6669
UriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ProductCategory", "Bikes"))
70+
'#End Region
6771
````
6872

6973
* __When report parameters have repeating names but they are not merged:__ In this case, you need to refer to the individual occurrence of the parameter in a particular report. This is done by denoting the target report by its zero-based index inside the report book.
7074

7175
````C#
76+
#region Set_Values_For_NotMergable_ReportParameters_In_UriReportSource_Snippet
7277
var UriReportSource = new Telerik.Reporting.UriReportSource();
73-
UriReportSource.Uri = "MyReportBook.trdp";
78+
UriReportSource.Uri = "MyReportBook.trbp";
7479

7580
// Passing a value for not mergeable report parameter targeting the FIRST report in the report book
7681
//through the report source
@@ -79,10 +84,12 @@ UriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("reports(0).Clien
7984
// Passing a value for not mergeable report parameter targeting the SECOND report in the report book
8085
//through the report source
8186
UriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("reports(1).ClientID", 103));
87+
#endregion
8288
````
8389
````VB.NET
90+
'#Region Set_Values_For_NotMergable_ReportParameters_In_UriReportSource_Snippet
8491
Dim UriReportSource As New Telerik.Reporting.UriReportSource()
85-
UriReportSource.Uri = "MyReportBook.trdp"
92+
UriReportSource.Uri = "MyReportBook.trbp"
8693

8794
' Passing a value for Not mergeable report parameter targeting the FIRST report in the report book
8895
' through the report source
@@ -91,6 +98,7 @@ UriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("reports(0).Clien
9198
' Passing a value for Not mergeable report parameter targeting the SECOND report in the report book
9299
' through the report source
93100
UriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("reports(1).ClientID", 103))
101+
'#End Region
94102
````
95103

96104
>note If you do not use the specified syntax and you refer to the report parameter directly by the `Name` property's value, the value will be set only for the _first_ occurrence of the report parameter in the report book.

0 commit comments

Comments
 (0)