hi!
i have a report where the textboxes in the GroupHeader and Detail use the Docking = Left to simulate a table. In the Detail section, i use filters to add a border-top and border-bottom depending on a value and also to alternate the background-color of the row.
The code that i use is this:
Everthing works fine except that when i publish the report in PDF format, the width of border-top is really at 2px but the width of border-bottom is at 1px (check the report.png file)
With the test that i've made, i think the problem come from the background color of the next row (gray) that overlap the previous row (white) for 1px. This is why i have a border-bottom of 1px and not 2px. If i alternate the background-color differently (the next row is white and the previous row is gray), the border-bottom have 2px (check the report_alt.png)
Also, if you check the header of the table, you will see that to border-top and border-bottom is different compared to the ones on the other column. I have put a red arrow to show you where exactly. The difference between the two textboxes here is that the first one use a border-left of 1px but not the other one aside. If i remove the border-left, the border-top and border-bottom will be identical of the one aside.
Do you have an idea on how to solve these problems? btw, i've tried to use the Table control but i didnt found how to use it properly on this simple report.
thank you for the help!
alex
i have a report where the textboxes in the GroupHeader and Detail use the Docking = Left to simulate a table. In the Detail section, i use filters to add a border-top and border-bottom depending on a value and also to alternate the background-color of the row.
The code that i use is this:
FormattingRule alternateRowFormatingRule =
new
FormattingRule();
alternateRowFormatingRule.Filters.Add(
new
Telerik.Reporting.Data.Filter(
"= RowNumber() % 2"
, Telerik.Reporting.Data.FilterOperator.Equal,
"0"
));
alternateRowFormatingRule.Style.BackgroundColor = System.Drawing.Color.WhiteSmoke;
FormattingRule atr99 =
new
FormattingRule();
atr99.Filters.Add(
new
Telerik.Reporting.Data.Filter(
"= Fields.IdRegionTouristique"
, Telerik.Reporting.Data.FilterOperator.Equal,
"99"
));
atr99.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
atr99.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.None;
atr99.Style.BorderStyle.Right = Telerik.Reporting.Drawing.BorderType.None;
atr99.Style.BorderWidth.Default =
new
Telerik.Reporting.Drawing.Unit(2D, Telerik.Reporting.Drawing.UnitType.Pixel);
atr99.Style.Font.Bold =
true
;
detail.ConditionalFormatting.Add(alternateRowFormatingRule);
detail.ConditionalFormatting.Add(atr99);
Everthing works fine except that when i publish the report in PDF format, the width of border-top is really at 2px but the width of border-bottom is at 1px (check the report.png file)
With the test that i've made, i think the problem come from the background color of the next row (gray) that overlap the previous row (white) for 1px. This is why i have a border-bottom of 1px and not 2px. If i alternate the background-color differently (the next row is white and the previous row is gray), the border-bottom have 2px (check the report_alt.png)
Also, if you check the header of the table, you will see that to border-top and border-bottom is different compared to the ones on the other column. I have put a red arrow to show you where exactly. The difference between the two textboxes here is that the first one use a border-left of 1px but not the other one aside. If i remove the border-left, the border-top and border-bottom will be identical of the one aside.
Do you have an idea on how to solve these problems? btw, i've tried to use the Table control but i didnt found how to use it properly on this simple report.
thank you for the help!
alex