Groupe CDGI
Top achievements
Rank 1
Groupe CDGI
asked on 10 Apr 2009, 06:55 PM
I really don't know what to say... i've been working on implementing my reports for the past 2 weeks (was previously in Crystal Reports) and now that i'm done, i see that the printing is by far more beautiful than the PDF rendering...
We just converted our application before moving to Telerik to be able to send our invoices via email and now, when i look at it, it is pretty disgusting. The Bar code can't be scanned at all, the lines and texts all seem bold. In fact, everything is badly drawn in the PDF. Like i was looking at a 72DPI image with poor resolution that was stretched...
Please look at the printout that i scanned in high DPI and the PDF files below... Not the same at all. We can't send these PDFs to our client before cleaning this out. And i worked 2 weeks full time to learn how to use Telerik Reporting and convert our Crystal Reports to it. What can i do?
Print out scans
Printout equivalent of invoice f-09-4867.pdf
Printout equivalent of invoice f-09-4868.pdf
Part1 of printout equivalent of f-09-4868-detail-intervention.pdf
Part2 of printout equivalent of f-09-4868-detail-intervention.pdf
Rendered PDF files
Rendered PDF for F-09-4867
Rendered PDF for F-09-4868
Rendered PDF for F-09-4868-Detail-Intervention
http://www.groupe-cdgi.com/temp/F-09-4868.pdf
Thanks, Mathieu
We just converted our application before moving to Telerik to be able to send our invoices via email and now, when i look at it, it is pretty disgusting. The Bar code can't be scanned at all, the lines and texts all seem bold. In fact, everything is badly drawn in the PDF. Like i was looking at a 72DPI image with poor resolution that was stretched...
Please look at the printout that i scanned in high DPI and the PDF files below... Not the same at all. We can't send these PDFs to our client before cleaning this out. And i worked 2 weeks full time to learn how to use Telerik Reporting and convert our Crystal Reports to it. What can i do?
Print out scans
Printout equivalent of invoice f-09-4867.pdf
Printout equivalent of invoice f-09-4868.pdf
Part1 of printout equivalent of f-09-4868-detail-intervention.pdf
Part2 of printout equivalent of f-09-4868-detail-intervention.pdf
Rendered PDF files
Rendered PDF for F-09-4867
Rendered PDF for F-09-4868
Rendered PDF for F-09-4868-Detail-Intervention
http://www.groupe-cdgi.com/temp/F-09-4868.pdf
Thanks, Mathieu
13 Answers, 1 is accepted
0
Hello Groupe CDGI,
Honestly we do not see the poor pdf output you mention in this thread by looking at the referenced pdfs. Actually, they seem like any standard pdf's you can find on the net. Now that I think of it, this might have something to do with the setting described in this blog post. Please make the change, make sure that you have the Adobe Reader zoom set to 100% and you should see your image with its "default" quality.
The same goes for the text that seem like it has bold applied, although we do not really have control over how Adobe's reader threats normal vs bold text.
Anyway you can place two textboxes right next to each other and make the text in one of them bold. When you export the report in pdf, you should be able to easily tell, which one has bold text.
Kind regards,
Steve
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Honestly we do not see the poor pdf output you mention in this thread by looking at the referenced pdfs. Actually, they seem like any standard pdf's you can find on the net. Now that I think of it, this might have something to do with the setting described in this blog post. Please make the change, make sure that you have the Adobe Reader zoom set to 100% and you should see your image with its "default" quality.
The same goes for the text that seem like it has bold applied, although we do not really have control over how Adobe's reader threats normal vs bold text.
Anyway you can place two textboxes right next to each other and make the text in one of them bold. When you export the report in pdf, you should be able to easily tell, which one has bold text.
Kind regards,
Steve
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
C
Top achievements
Rank 1
answered on 12 May 2009, 05:37 PM
I believe Groupe CDGI is correct. The rendered PDF quality is terrible. I checked out the linked blog post and the setting mentioned was allready set correctly on my system. Furthermore, this suggestion is bad anyway. Do you really expect people to include instructions on how to modify the settings in Acrobat to make the pdf look decent? Do you really think customers will bother follow those instructions?
Also, seeing as thought the PDFs i export from Crystal Reports display correctly, the problem would still seem to be with the Telerik Reports PDF export.
With all this being Said, I investigated the problem futher and it appears that however Telerik Reports exports its PDF, it is not compatable with older versions of Adobe. I had Adobe 6.0 Professional installed on my machine and the exported pdf looks like junk and so does Groupe CDGI's PDF. I installed Adobe Reader 9.0 and suddenly the exported PDF's looked wonderfull.
Since reports tend to be sent off to clients that we IT pros have no control over, I still think telerik should consider looking at this compatability issue. For the time being, I'm going to leave my Crystal reports in production.
Also, seeing as thought the PDFs i export from Crystal Reports display correctly, the problem would still seem to be with the Telerik Reports PDF export.
With all this being Said, I investigated the problem futher and it appears that however Telerik Reports exports its PDF, it is not compatable with older versions of Adobe. I had Adobe 6.0 Professional installed on my machine and the exported pdf looks like junk and so does Groupe CDGI's PDF. I installed Adobe Reader 9.0 and suddenly the exported PDF's looked wonderfull.
Since reports tend to be sent off to clients that we IT pros have no control over, I still think telerik should consider looking at this compatability issue. For the time being, I'm going to leave my Crystal reports in production.
0
Hello C,
As explained in the Design Considerations for PDF Rendering, Telerik Reporting produces a version 1.6 PDF file, which means it can be opened with Adobe Acrobat 7.0 or later.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
As explained in the Design Considerations for PDF Rendering, Telerik Reporting produces a version 1.6 PDF file, which means it can be opened with Adobe Acrobat 7.0 or later.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 07 May 2010, 04:06 PM
I find the report rendering to be terrible most times, especially if I'm dealing with borders.
Like for example, on a crosstab if I specify a black 2px bottom border for the header, then a light-grey left\right on the detail column, it generates the lightgrey OVERTOP of the black header line....on top of borders generally appearing invisible. On top of that for some reason the bottom border on an alt-row is twice as large as the one above even though I haven't specified any style rule to do that anywhere...
Issue is driving me mental right now, I can't spend any more time on this, but I don't want to submit this ugly render to the admins.
Like for example, on a crosstab if I specify a black 2px bottom border for the header, then a light-grey left\right on the detail column, it generates the lightgrey OVERTOP of the black header line....on top of borders generally appearing invisible. On top of that for some reason the bottom border on an alt-row is twice as large as the one above even though I haven't specified any style rule to do that anywhere...
Issue is driving me mental right now, I can't spend any more time on this, but I don't want to submit this ugly render to the admins.
0
Hello Steve,
As you have probably found out by now, providing us with a sample report that shows the issues you've encountered is the fastest way to get to the bottom of issues. Once we review the sample report (screenshots would be appreciated as well), we would be able to advise you accordingly.
Greetings,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
As you have probably found out by now, providing us with a sample report that shows the issues you've encountered is the fastest way to get to the bottom of issues. Once we review the sample report (screenshots would be appreciated as well), we would be able to advise you accordingly.
Greetings,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 11 May 2010, 01:14 PM
See attached image...I can't attach the full PDF because of sensitive information
I mean I might be doing something wrong, but I'm pretty sure I specified No top borders...regardless the crosstab header border should overlay the children
I mean I might be doing something wrong, but I'm pretty sure I specified No top borders...regardless the crosstab header border should overlay the children
namespace CPSLite.Reporting { |
partial class ByProgram { |
#region Component Designer generated code |
/// <summary> |
/// Required method for telerik Reporting designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() { |
Telerik.Reporting.Drawing.FormattingRule formattingRule1 = new Telerik.Reporting.Drawing.FormattingRule(); |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ByProgram)); |
Telerik.Reporting.TableGroup tableGroup1 = new Telerik.Reporting.TableGroup(); |
Telerik.Reporting.TableGroup tableGroup2 = new Telerik.Reporting.TableGroup(); |
Telerik.Reporting.Drawing.FormattingRule formattingRule2 = new Telerik.Reporting.Drawing.FormattingRule(); |
Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter(); |
Telerik.Reporting.ReportParameter reportParameter2 = new Telerik.Reporting.ReportParameter(); |
Telerik.Reporting.Drawing.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule(); |
Telerik.Reporting.Drawing.StyleRule styleRule2 = new Telerik.Reporting.Drawing.StyleRule(); |
Telerik.Reporting.Drawing.DescendantSelector descendantSelector1 = new Telerik.Reporting.Drawing.DescendantSelector(); |
Telerik.Reporting.Drawing.StyleRule styleRule3 = new Telerik.Reporting.Drawing.StyleRule(); |
Telerik.Reporting.Drawing.DescendantSelector descendantSelector2 = new Telerik.Reporting.Drawing.DescendantSelector(); |
Telerik.Reporting.Drawing.StyleRule styleRule4 = new Telerik.Reporting.Drawing.StyleRule(); |
Telerik.Reporting.Drawing.DescendantSelector descendantSelector3 = new Telerik.Reporting.Drawing.DescendantSelector(); |
Telerik.Reporting.Drawing.StyleRule styleRule5 = new Telerik.Reporting.Drawing.StyleRule(); |
Telerik.Reporting.Drawing.StyleRule styleRule6 = new Telerik.Reporting.Drawing.StyleRule(); |
Telerik.Reporting.Drawing.StyleRule styleRule7 = new Telerik.Reporting.Drawing.StyleRule(); |
this.textBox1 = new Telerik.Reporting.TextBox(); |
this.textBox2 = new Telerik.Reporting.TextBox(); |
this.PostgradPlacementDS = new Telerik.Reporting.SqlDataSource(); |
this.pageHeader = new Telerik.Reporting.PageHeaderSection(); |
this.textBox5 = new Telerik.Reporting.TextBox(); |
this.textBox6 = new Telerik.Reporting.TextBox(); |
this.textBox7 = new Telerik.Reporting.TextBox(); |
this.detail = new Telerik.Reporting.DetailSection(); |
this.crosstab1 = new Telerik.Reporting.Crosstab(); |
this.textBox4 = new Telerik.Reporting.TextBox(); |
this.textBox3 = new Telerik.Reporting.TextBox(); |
this.pageFooter = new Telerik.Reporting.PageFooterSection(); |
this.textBox8 = new Telerik.Reporting.TextBox(); |
this.textBox9 = new Telerik.Reporting.TextBox(); |
((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); |
// |
// textBox1 |
// |
this.textBox1.Name = "textBox1"; |
this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.7991665601730347D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.44979166984558105D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox1.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid; |
this.textBox1.Style.BorderWidth.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox1.Style.Color = System.Drawing.Color.Black; |
this.textBox1.Style.Font.Bold = true; |
this.textBox1.Style.Font.Name = "Arial"; |
this.textBox1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox1.Style.Padding.Bottom = new Telerik.Reporting.Drawing.Unit(5D, Telerik.Reporting.Drawing.UnitType.Pixel); |
this.textBox1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; |
this.textBox1.StyleName = "NoBorders"; |
this.textBox1.Value = "= Fields.periodname"; |
// |
// textBox2 |
// |
formattingRule1.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { |
new Telerik.Reporting.Data.Filter("= RowNumber() % 2", Telerik.Reporting.Data.FilterOperator.Equal, "0")}); |
formattingRule1.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); |
this.textBox2.ConditionalFormatting.AddRange(new Telerik.Reporting.Drawing.FormattingRule[] { |
formattingRule1}); |
this.textBox2.Name = "textBox2"; |
this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(4.3656249046325684D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.44979184865951538D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox2.Style.BorderColor.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(188)))), ((int)(((byte)(188)))), ((int)(((byte)(188))))); |
this.textBox2.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid; |
this.textBox2.Style.BorderWidth.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox2.Style.Font.Name = "Courier New"; |
this.textBox2.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(9D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox2.StyleName = "NoBorders"; |
this.textBox2.Value = "=Fields.familyname + \", \" + Fields.givenname"; |
// |
// PostgradPlacementDS |
// |
this.PostgradPlacementDS.ConnectionString = "authdb"; |
this.PostgradPlacementDS.Name = "PostgradPlacementDS"; |
this.PostgradPlacementDS.SelectCommand = resources.GetString("PostgradPlacementDS.SelectCommand"); |
// |
// pageHeader |
// |
this.pageHeader.Height = new Telerik.Reporting.Drawing.Unit(2.7999997138977051D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.pageHeader.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { |
this.textBox5, |
this.textBox6, |
this.textBox7}); |
this.pageHeader.Name = "pageHeader"; |
this.pageHeader.Style.BackgroundImage.ImageData = global::CPSLite.Reporting.Properties.Resources.logo; |
this.pageHeader.Style.BackgroundImage.MimeType = "image/png"; |
this.pageHeader.Style.BackgroundImage.Repeat = Telerik.Reporting.Drawing.BackgroundRepeat.NoRepeat; |
// |
// textBox5 |
// |
this.textBox5.Dock = System.Windows.Forms.DockStyle.Top; |
this.textBox5.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox5.Name = "textBox5"; |
this.textBox5.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(26.600000381469727D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.89999997615814209D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox5.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; |
this.textBox5.StyleName = "Header"; |
this.textBox5.Value = "= Parameters.ProgramName.Value"; |
// |
// textBox6 |
// |
this.textBox6.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.89999997615814209D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox6.Name = "textBox6"; |
this.textBox6.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(26.600000381469727D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.89999997615814209D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox6.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; |
this.textBox6.StyleName = "PrintedDateHeader"; |
this.textBox6.Value = "= Now().ToString(\"dddd MMMM dd, yyyy\")"; |
// |
// textBox7 |
// |
this.textBox7.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.1998999118804932D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox7.Name = "textBox7"; |
this.textBox7.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(26.600000381469727D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.60009980201721191D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox7.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; |
this.textBox7.StyleName = "Header"; |
this.textBox7.Value = "Rotation Dates"; |
// |
// detail |
// |
this.detail.Height = new Telerik.Reporting.Drawing.Unit(0.89968341588974D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { |
this.crosstab1}); |
this.detail.Name = "detail"; |
this.detail.Style.BackgroundImage.MimeType = "image/jpeg"; |
this.detail.Style.BackgroundImage.Repeat = Telerik.Reporting.Drawing.BackgroundRepeat.NoRepeat; |
// |
// crosstab1 |
// |
this.crosstab1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(new Telerik.Reporting.Drawing.Unit(1.7991666793823242D, Telerik.Reporting.Drawing.UnitType.Cm))); |
this.crosstab1.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(new Telerik.Reporting.Drawing.Unit(0.44979184865951538D, Telerik.Reporting.Drawing.UnitType.Cm))); |
this.crosstab1.Body.SetCellContent(0, 0, this.textBox4); |
tableGroup1.Grouping.AddRange(new Telerik.Reporting.Data.Grouping[] { |
new Telerik.Reporting.Data.Grouping("=Fields.periodname")}); |
tableGroup1.Name = "startdate.Month"; |
tableGroup1.ReportItem = this.textBox1; |
tableGroup1.Sorting.AddRange(new Telerik.Reporting.Data.Sorting[] { |
new Telerik.Reporting.Data.Sorting("=Fields.startdate", Telerik.Reporting.Data.SortDirection.Asc)}); |
this.crosstab1.ColumnGroups.Add(tableGroup1); |
this.crosstab1.Corner.SetCellContent(0, 0, this.textBox3); |
thisthis.crosstab1.DataSource = this.PostgradPlacementDS; |
this.crosstab1.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { |
new Telerik.Reporting.Data.Filter("=Fields.programname", Telerik.Reporting.Data.FilterOperator.Equal, "=Parameters.ProgramName.Value"), |
new Telerik.Reporting.Data.Filter("=Fields.planningyear", Telerik.Reporting.Data.FilterOperator.Equal, "=Parameters.PlanningYear.Value")}); |
this.crosstab1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { |
this.textBox4, |
this.textBox1, |
this.textBox3, |
this.textBox2}); |
this.crosstab1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.00010012308484874666D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.00010012308484874666D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.crosstab1.Name = "crosstab1"; |
tableGroup2.Grouping.AddRange(new Telerik.Reporting.Data.Grouping[] { |
new Telerik.Reporting.Data.Grouping("=Fields.familyname")}); |
tableGroup2.Name = "familyname"; |
tableGroup2.ReportItem = this.textBox2; |
tableGroup2.Sorting.AddRange(new Telerik.Reporting.Data.Sorting[] { |
new Telerik.Reporting.Data.Sorting("=Fields.familyname", Telerik.Reporting.Data.SortDirection.Asc), |
new Telerik.Reporting.Data.Sorting("=Fields.givenname", Telerik.Reporting.Data.SortDirection.Asc)}); |
this.crosstab1.RowGroups.Add(tableGroup2); |
this.crosstab1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6.1647915840148926D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.89958351850509644D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.crosstab1.Style.Visible = true; |
this.crosstab1.StyleName = "NoBorders"; |
// |
// textBox4 |
// |
formattingRule2.Filters.AddRange(new Telerik.Reporting.Data.Filter[] { |
new Telerik.Reporting.Data.Filter("=RowNumber() %2", Telerik.Reporting.Data.FilterOperator.Equal, "0")}); |
formattingRule2.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); |
this.textBox4.ConditionalFormatting.AddRange(new Telerik.Reporting.Drawing.FormattingRule[] { |
formattingRule2}); |
this.textBox4.Name = "textBox4"; |
this.textBox4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.7991665601730347D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.44979184865951538D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox4.Style.BorderColor.Bottom = System.Drawing.Color.FromArgb(((int)(((byte)(188)))), ((int)(((byte)(188)))), ((int)(((byte)(188))))); |
this.textBox4.Style.BorderColor.Left = System.Drawing.Color.FromArgb(((int)(((byte)(188)))), ((int)(((byte)(188)))), ((int)(((byte)(188))))); |
this.textBox4.Style.BorderColor.Right = System.Drawing.Color.FromArgb(((int)(((byte)(188)))), ((int)(((byte)(188)))), ((int)(((byte)(188))))); |
this.textBox4.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid; |
this.textBox4.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid; |
this.textBox4.Style.BorderStyle.Right = Telerik.Reporting.Drawing.BorderType.Solid; |
this.textBox4.Style.BorderWidth.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox4.Style.BorderWidth.Left = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox4.Style.BorderWidth.Right = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox4.Style.Font.Name = "Courier New"; |
this.textBox4.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(9D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox4.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; |
this.textBox4.StyleName = ""; |
this.textBox4.Value = "= CPSLite.Reporting.Helpers.Trim(Fields.rn_short) + \"/\" + CPSLite.Reporting.Helpe" + |
"rs.Trim(Fields.sn_short)"; |
// |
// textBox3 |
// |
this.textBox3.Name = "textBox3"; |
this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(4.3656249046325684D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.44979164004325867D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox3.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid; |
this.textBox3.Style.BorderWidth.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox3.Style.Color = System.Drawing.Color.Black; |
this.textBox3.Style.Font.Bold = true; |
this.textBox3.Style.Font.Name = "Arial"; |
this.textBox3.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox3.Style.Padding.Bottom = new Telerik.Reporting.Drawing.Unit(5D, Telerik.Reporting.Drawing.UnitType.Pixel); |
this.textBox3.StyleName = "NoBorders"; |
this.textBox3.Value = "Student Name"; |
// |
// pageFooter |
// |
this.pageFooter.Height = new Telerik.Reporting.Drawing.Unit(0.800000011920929D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.pageFooter.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { |
this.textBox8, |
this.textBox9}); |
this.pageFooter.Name = "pageFooter"; |
// |
// textBox8 |
// |
this.textBox8.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(21.200000762939453D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.20031681656837463D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox8.Name = "textBox8"; |
this.textBox8.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(5.3999996185302734D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.50000017881393433D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox8.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(9D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox8.Style.Padding.Right = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Pixel); |
this.textBox8.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right; |
this.textBox8.Value = "= \"Page \" + PageCount + \" of \" + PageNumber"; |
// |
// textBox9 |
// |
this.textBox9.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.00010012308484874666D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.20031681656837463D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox9.Name = "textBox9"; |
this.textBox9.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(9.3000001907348633D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.50000017881393433D, Telerik.Reporting.Drawing.UnitType.Cm)); |
this.textBox9.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(9D, Telerik.Reporting.Drawing.UnitType.Point); |
this.textBox9.Style.Padding.Right = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Pixel); |
this.textBox9.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left; |
this.textBox9.Value = "=\"(c) McMaster University\""; |
// |
// ByProgram |
// |
this.ExternalStyleSheets.Add(new Telerik.Reporting.Drawing.ExternalStyleSheet("StyleSheet.xml")); |
this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { |
this.pageHeader, |
this.detail, |
this.pageFooter}); |
this.PageSettings.Landscape = true; |
this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm); |
this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter; |
reportParameter1.AllowNull = true; |
reportParameter1.AvailableValues.DataSource = this.PostgradPlacementDS; |
reportParameter1.AvailableValues.DisplayMember = "= Fields.programname"; |
reportParameter1.AvailableValues.Sorting.AddRange(new Telerik.Reporting.Data.Sorting[] { |
new Telerik.Reporting.Data.Sorting("=Fields.programname", Telerik.Reporting.Data.SortDirection.Asc)}); |
reportParameter1.AvailableValues.ValueMember = "= Fields.programname"; |
reportParameter1.Name = "ProgramName"; |
reportParameter1.Value = "Family Medicine Hamilton"; |
reportParameter1.Visible = true; |
reportParameter2.Name = "PlanningYear"; |
reportParameter2.Value = "2010"; |
reportParameter2.Visible = true; |
this.ReportParameters.Add(reportParameter1); |
this.ReportParameters.Add(reportParameter2); |
this.Style.BackgroundColor = System.Drawing.Color.White; |
styleRule1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.StyleSelector(typeof(Telerik.Reporting.Table), "Normal.TableNormal")}); |
styleRule1.Style.BackgroundColor = System.Drawing.Color.White; |
styleRule1.Style.BorderColor.Default = System.Drawing.Color.Black; |
styleRule1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid; |
styleRule1.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Pixel); |
styleRule1.Style.Color = System.Drawing.Color.Black; |
styleRule1.Style.Font.Name = "Tahoma"; |
styleRule1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(8D, Telerik.Reporting.Drawing.UnitType.Point); |
descendantSelector1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.Table)), |
new Telerik.Reporting.Drawing.StyleSelector(typeof(Telerik.Reporting.ReportItem), "Normal.TableGroup")}); |
styleRule2.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
descendantSelector1}); |
styleRule2.Style.BorderColor.Default = System.Drawing.Color.Black; |
styleRule2.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid; |
styleRule2.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Pixel); |
descendantSelector2.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.Table)), |
new Telerik.Reporting.Drawing.StyleSelector(typeof(Telerik.Reporting.ReportItem), "Normal.TableHeader")}); |
styleRule3.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
descendantSelector2}); |
styleRule3.Style.BorderColor.Default = System.Drawing.Color.Black; |
styleRule3.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid; |
styleRule3.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Pixel); |
styleRule3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; |
descendantSelector3.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.Table)), |
new Telerik.Reporting.Drawing.StyleSelector(typeof(Telerik.Reporting.ReportItem), "Normal.TableBody")}); |
styleRule4.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
descendantSelector3}); |
styleRule4.Style.BorderColor.Default = System.Drawing.Color.Black; |
styleRule4.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid; |
styleRule4.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Pixel); |
styleRule4.Style.Font.Name = "Arial"; |
styleRule5.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.StyleSelector("NoBorders")}); |
styleRule5.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Point); |
styleRule6.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.StyleSelector("Header")}); |
styleRule6.Style.Font.Bold = true; |
styleRule6.Style.Font.Name = "Arial"; |
styleRule6.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(14D, Telerik.Reporting.Drawing.UnitType.Point); |
styleRule6.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; |
styleRule7.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] { |
new Telerik.Reporting.Drawing.StyleSelector("AltRow")}); |
styleRule7.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); |
this.StyleSheet.AddRange(new Telerik.Reporting.Drawing.StyleRule[] { |
styleRule1, |
styleRule2, |
styleRule3, |
styleRule4, |
styleRule5, |
styleRule6, |
styleRule7}); |
this.Width = new Telerik.Reporting.Drawing.Unit(26.600000381469727D, Telerik.Reporting.Drawing.UnitType.Cm); |
((System.ComponentModel.ISupportInitialize)(this)).EndInit(); |
} |
#endregion |
private Telerik.Reporting.PageHeaderSection pageHeader; |
private Telerik.Reporting.DetailSection detail; |
private Telerik.Reporting.PageFooterSection pageFooter; |
private Telerik.Reporting.Crosstab crosstab1; |
private Telerik.Reporting.TextBox textBox4; |
private Telerik.Reporting.TextBox textBox1; |
private Telerik.Reporting.TextBox textBox3; |
private Telerik.Reporting.SqlDataSource PostgradPlacementDS; |
private Telerik.Reporting.TextBox textBox2; |
private Telerik.Reporting.TextBox textBox5; |
private Telerik.Reporting.TextBox textBox6; |
private Telerik.Reporting.TextBox textBox7; |
private Telerik.Reporting.TextBox textBox8; |
private Telerik.Reporting.TextBox textBox9; |
} |
} |
0
Hi Steve,
We were able to reproduce both things you have reported and neither one is a bug. Your assumption that the "header" border should overlay the children is incorrect as first the parent is being drawn and then its children and it is only natural that they would be "on top" as otherwise a background or data from the parent can wipe out parts of the child. Either way this is only noticeable if you zoom quite a bit the report or pdf document.
As for "the bottom border on an alt-row is twice as large as the one above" - this illusion is caused by the fact that you have set background color to the textbox items and it takes up part of the border - if you change the gray to more contrasting color you would notice this. So the difference in the border width is coming from the fact that the above cell does not have a background color. Currently a border is half in the inner part of an item, half in the outer, so to speak and this cannot be easily changed.
Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
We were able to reproduce both things you have reported and neither one is a bug. Your assumption that the "header" border should overlay the children is incorrect as first the parent is being drawn and then its children and it is only natural that they would be "on top" as otherwise a background or data from the parent can wipe out parts of the child. Either way this is only noticeable if you zoom quite a bit the report or pdf document.
As for "the bottom border on an alt-row is twice as large as the one above" - this illusion is caused by the fact that you have set background color to the textbox items and it takes up part of the border - if you change the gray to more contrasting color you would notice this. So the difference in the border width is coming from the fact that the above cell does not have a background color. Currently a border is half in the inner part of an item, half in the outer, so to speak and this cannot be easily changed.
Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 14 May 2010, 01:35 PM
So you're saying that's the desired rendered output? Regardless of HOW it's rendering, common, that's desired output for nobody...
Attached is an actual size screenshot and it's clearly visible still...zoomed to fit screen it's way more visible, and it (obviously) comes out that way on a printer. Let me put it this way, it's still noticeable enough that I've had an admin to complain to me that it looks sloppy, and what do I tell them, telerik said that's how we render things? Look at the crystal.png...no overlapping in crystal reports...clearly the rendering order needs to be changed if it CAN be done with other rendering engines.
Ok for the border issue I'm not sure what you mean. I've changed the border colors to be obnoxious (see screenshot2), and set the %2 = 1 row to have a background color of white (good call on the transparent though, that never occurred to me since it looks white b\c of the background)...
Anyway, so if now technically both row and altrow are styled the same (now)...with just the background color being different, why is alt twice as wide?
Attached is an actual size screenshot and it's clearly visible still...zoomed to fit screen it's way more visible, and it (obviously) comes out that way on a printer. Let me put it this way, it's still noticeable enough that I've had an admin to complain to me that it looks sloppy, and what do I tell them, telerik said that's how we render things? Look at the crystal.png...no overlapping in crystal reports...clearly the rendering order needs to be changed if it CAN be done with other rendering engines.
Ok for the border issue I'm not sure what you mean. I've changed the border colors to be obnoxious (see screenshot2), and set the %2 = 1 row to have a background color of white (good call on the transparent though, that never occurred to me since it looks white b\c of the background)...
Anyway, so if now technically both row and altrow are styled the same (now)...with just the background color being different, why is alt twice as wide?
0
Hello Steve,
Thank you for the additional details. Your arguments for both points make sense and we would research if there is a feasible way to address them for subsequent versions of the product. With the current version of the product, there is no way to change either one of them for which we apologize.
Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you for the additional details. Your arguments for both points make sense and we would research if there is a feasible way to address them for subsequent versions of the product. With the current version of the product, there is no way to change either one of them for which we apologize.
Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Farid Hayati
Top achievements
Rank 1
answered on 07 Feb 2012, 07:07 PM
We have the same problem with crosstab and table report. We trying to create a simple crosstab. The borders looks really terrible. We tried to create 3 reports in different ways. We used crosstab wizard and created manually crosstab. We also used different styles and removed all styles. The result was terrible.
We have set default border for the whole table and cells to none/0px. We only set the bottom border for each cell 1px/pt but randomly the border width is different in each row/cell.
We are using webforms report viewer with q3 2011 release of telerik reporting. See the result in attached image.
We are sure that this is a bug. Could you tell us how to manage have border that makes sense. There is no way we can send these terrible reports to clients.
Farid
We have set default border for the whole table and cells to none/0px. We only set the bottom border for each cell 1px/pt but randomly the border width is different in each row/cell.
We are using webforms report viewer with q3 2011 release of telerik reporting. See the result in attached image.
We are sure that this is a bug. Could you tell us how to manage have border that makes sense. There is no way we can send these terrible reports to clients.
Farid
0
Hi Farid,
Did you set any background color to the Table cells, if so can you remove it? The Table from the screenshot looks zoomed, is this the 100% view in Acrobat reader? Please send us your report in a support ticket and we would be able to provide more information.
Kind regards,
Steve
the Telerik team
Did you set any background color to the Table cells, if so can you remove it? The Table from the screenshot looks zoomed, is this the 100% view in Acrobat reader? Please send us your report in a support ticket and we would be able to provide more information.
Kind regards,
Steve
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Farid Hayati
Top achievements
Rank 1
answered on 08 Feb 2012, 10:41 AM
Screen shots
we have attached the screens shots of pdf reader with 100% zoom and report viewer. they are both showing wrong formating. The borders in the pdf does not have the same border width and the report viewer does not displaying any border.
Farid
we have attached the screens shots of pdf reader with 100% zoom and report viewer. they are both showing wrong formating. The borders in the pdf does not have the same border width and the report viewer does not displaying any border.
Farid
0
Hello Farid,
We reviewed the report you've sent in your ticket and noticed that borders width is only 0.5 pt. Borders under one pt can't be represented correctly in the viewing applications as they natively support only objects bigger then one pixel. Since in your case the border is really small they cannot be rendered correctly by the viewing applications. You can confirm this by zooming which shows consistent borders. Our suggestion is to increase the borders width in order to avoid the borders viewing inconsistencies.
About the border in the web viewer, the Q3 2011 SP1 includes numerous HTML rendering improvements, thus our suggestion is to download it and give it a try.
Greetings,
Steve
the Telerik team
We reviewed the report you've sent in your ticket and noticed that borders width is only 0.5 pt. Borders under one pt can't be represented correctly in the viewing applications as they natively support only objects bigger then one pixel. Since in your case the border is really small they cannot be rendered correctly by the viewing applications. You can confirm this by zooming which shows consistent borders. Our suggestion is to increase the borders width in order to avoid the borders viewing inconsistencies.
About the border in the web viewer, the Q3 2011 SP1 includes numerous HTML rendering improvements, thus our suggestion is to download it and give it a try.
Greetings,
Steve
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>