10 Answers, 1 is accepted
A quick comparison of the Invoice demo report in the web report viewer and in the Silverlight report viewer, does not exhibit such problem. We would appreciate if you provide us with a sample report that shows the problem you've encountered.
Best wishes,
Steve
the Telerik team
namespace ReportARAgeTest
{
partial class ARAgeRep
{
#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.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule();
Telerik.Reporting.Drawing.StyleRule styleRule2 = new Telerik.Reporting.Drawing.StyleRule();
Telerik.Reporting.Drawing.StyleRule styleRule3 = new Telerik.Reporting.Drawing.StyleRule();
Telerik.Reporting.Drawing.StyleRule styleRule4 = new Telerik.Reporting.Drawing.StyleRule();
this.aRMTIDGroupHeader = new Telerik.Reporting.GroupHeaderSection();
this.textBox3 = new Telerik.Reporting.TextBox();
this.aRMTIDGroupFooter = new Telerik.Reporting.GroupFooterSection();
this.aRMTIDGroup = new Telerik.Reporting.Group();
this.pageHeader = new Telerik.Reporting.PageHeaderSection();
this.reportNameTextBox = new Telerik.Reporting.TextBox();
this.pageFooter = new Telerik.Reporting.PageFooterSection();
this.currentTimeTextBox = new Telerik.Reporting.TextBox();
this.detail = new Telerik.Reporting.DetailSection();
this.reportHeaderSection1 = new Telerik.Reporting.ReportHeaderSection();
this.textBox1 = new Telerik.Reporting.TextBox();
this.textBox6 = new Telerik.Reporting.TextBox();
this.textBox7 = new Telerik.Reporting.TextBox();
this.textBox5 = new Telerik.Reporting.TextBox();
this.textBox14 = new Telerik.Reporting.TextBox();
this.txtPeriod4 = new Telerik.Reporting.TextBox();
this.textBox13 = new Telerik.Reporting.TextBox();
this.textBox15 = new Telerik.Reporting.TextBox();
this.textBox17 = new Telerik.Reporting.TextBox();
this.group1 = new Telerik.Reporting.Group();
this.groupFooterSection1 = new Telerik.Reporting.GroupFooterSection();
this.textBox11 = new Telerik.Reporting.TextBox();
this.groupHeaderSection1 = new Telerik.Reporting.GroupHeaderSection();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// aRMTIDGroupHeader
//
this.aRMTIDGroupHeader.Height = new Telerik.Reporting.Drawing.Unit(0.21958820521831513D, Telerik.Reporting.Drawing.UnitType.Inch);
this.aRMTIDGroupHeader.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
this.textBox3});
this.aRMTIDGroupHeader.Name = "aRMTIDGroupHeader";
this.aRMTIDGroupHeader.Style.Font.Bold = true;
//
// textBox3
//
this.textBox3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.019588232040405273D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox3.Name = "textBox3";
this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.5791667103767395D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox3.Value = "Client: ";
//
// aRMTIDGroupFooter
//
this.aRMTIDGroupFooter.Height = new Telerik.Reporting.Drawing.Unit(0.78329390287399292D, Telerik.Reporting.Drawing.UnitType.Inch);
this.aRMTIDGroupFooter.Name = "aRMTIDGroupFooter";
this.aRMTIDGroupFooter.Style.Font.Bold = true;
//
// aRMTIDGroup
//
this.aRMTIDGroup.GroupFooter = this.aRMTIDGroupFooter;
this.aRMTIDGroup.GroupHeader = this.aRMTIDGroupHeader;
this.aRMTIDGroup.Groupings.AddRange(new Telerik.Reporting.Data.Grouping[] {
new Telerik.Reporting.Data.Grouping("=Fields.ARCLID")});
this.aRMTIDGroup.Name = "aRMTIDGroup";
//
// pageHeader
//
this.pageHeader.Height = new Telerik.Reporting.Drawing.Unit(0.29988190531730652D, Telerik.Reporting.Drawing.UnitType.Inch);
this.pageHeader.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
this.reportNameTextBox});
this.pageHeader.Name = "pageHeader";
this.pageHeader.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
//
// reportNameTextBox
//
this.reportNameTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.8601188659667969D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.018671274185180664D, Telerik.Reporting.Drawing.UnitType.Inch));
this.reportNameTextBox.Name = "reportNameTextBox";
this.reportNameTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6.4166665077209473D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.28117135167121887D, Telerik.Reporting.Drawing.UnitType.Inch));
this.reportNameTextBox.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.reportNameTextBox.Style.Font.Bold = true;
this.reportNameTextBox.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(16D, Telerik.Reporting.Drawing.UnitType.Point);
this.reportNameTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
this.reportNameTextBox.StyleName = "PageInfo";
this.reportNameTextBox.Value = "ARAgeRep";
//
// pageFooter
//
this.pageFooter.Height = new Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this.pageFooter.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
this.currentTimeTextBox});
this.pageFooter.Name = "pageFooter";
//
// currentTimeTextBox
//
this.currentTimeTextBox.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch));
this.currentTimeTextBox.Name = "currentTimeTextBox";
this.currentTimeTextBox.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(3.1979167461395264D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.20000000298023224D, Telerik.Reporting.Drawing.UnitType.Inch));
this.currentTimeTextBox.StyleName = "PageInfo";
this.currentTimeTextBox.Value = "=NOW()";
//
// detail
//
this.detail.Height = new Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this.detail.Name = "detail";
//
// reportHeaderSection1
//
this.reportHeaderSection1.Height = new Telerik.Reporting.Drawing.Unit(0.43825945258140564D, Telerik.Reporting.Drawing.UnitType.Inch);
this.reportHeaderSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
this.textBox1,
this.textBox6,
this.textBox7,
this.textBox5,
this.textBox14,
this.txtPeriod4,
this.textBox13,
this.textBox15,
this.textBox17});
this.reportHeaderSection1.Name = "reportHeaderSection1";
this.reportHeaderSection1.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid;
this.reportHeaderSection1.Style.Font.Bold = true;
//
// textBox1
//
this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.60000008344650269D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.60000008344650269D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this.textBox1.Value = "Invoice No.";
//
// textBox6
//
this.textBox6.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.29880952835083D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox6.Name = "textBox6";
this.textBox6.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.80000019073486328D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox6.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
this.textBox6.Value = "Invoice Date";
//
// textBox7
//
this.textBox7.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(3.1000001430511475D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox7.Name = "textBox7";
this.textBox7.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.0184526443481445D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox7.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this.textBox7.Value = "Total AR Balance";
//
// textBox5
//
this.textBox5.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.098888635635376D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox5.Name = "textBox5";
this.textBox5.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.89880913496017456D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox5.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
this.textBox5.Value = "Last Print Date";
//
// textBox14
//
this.textBox14.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.2000002861022949D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox14.Name = "textBox14";
this.textBox14.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(3.276785135269165D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.18750007450580597D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox14.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
this.textBox14.Value = "-------------------A/R Balance ---------------------";
//
// txtPeriod4
//
this.txtPeriod4.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(7D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.20011806488037109D, Telerik.Reporting.Drawing.UnitType.Inch));
this.txtPeriod4.Name = "txtPeriod4";
this.txtPeriod4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.80000019073486328D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.21253935992717743D, Telerik.Reporting.Drawing.UnitType.Inch));
this.txtPeriod4.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this.txtPeriod4.Value = "Over";
//
// textBox13
//
this.textBox13.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(7.9062638282775879D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox13.Name = "textBox13";
this.textBox13.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.93325901031494141D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox13.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this.textBox13.Value = "Fee Balance";
//
// textBox15
//
this.textBox15.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(8.918766975402832D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox15.Name = "textBox15";
this.textBox15.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.98123389482498169D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox15.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this.textBox15.Value = "Disbursement Balance";
//
// textBox17
//
this.textBox17.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.03125D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox17.Name = "textBox17";
this.textBox17.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.49998378753662109D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38140740990638733D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox17.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
this.textBox17.Value = "A/R Code";
//
// group1
//
this.group1.GroupFooter = this.groupFooterSection1;
this.group1.GroupHeader = this.groupHeaderSection1;
this.group1.Groupings.AddRange(new Telerik.Reporting.Data.Grouping[] {
new Telerik.Reporting.Data.Grouping("=Fields.ARMTID")});
this.group1.Name = "group1";
//
// groupFooterSection1
//
this.groupFooterSection1.Height = new Telerik.Reporting.Drawing.Unit(0.35965743660926819D, Telerik.Reporting.Drawing.UnitType.Inch);
this.groupFooterSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
this.textBox11});
this.groupFooterSection1.Name = "groupFooterSection1";
this.groupFooterSection1.Style.Font.Bold = true;
//
// textBox11
//
this.textBox11.CanGrow = true;
this.textBox11.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.018710613250732422D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox11.Name = "textBox11";
this.textBox11.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.2404762506484985D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.20000000298023224D, Telerik.Reporting.Drawing.UnitType.Inch));
this.textBox11.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this.textBox11.StyleName = "Caption";
this.textBox11.Value = "Matter-total:";
//
// groupHeaderSection1
//
this.groupHeaderSection1.Height = new Telerik.Reporting.Drawing.Unit(0.22087256610393524D, Telerik.Reporting.Drawing.UnitType.Inch);
this.groupHeaderSection1.Name = "groupHeaderSection1";
//
// ARAgeRep
//
this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
this.aRMTIDGroupHeader,
this.aRMTIDGroupFooter,
this.groupHeaderSection1,
this.groupFooterSection1,
this.pageHeader,
this.pageFooter,
this.detail,
this.reportHeaderSection1});
this.PageSettings.Landscape = true;
this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch);
this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(0.10000000149011612D, Telerik.Reporting.Drawing.UnitType.Inch);
this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(0.10000000149011612D, Telerik.Reporting.Drawing.UnitType.Inch);
this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch);
this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
this.Style.BackgroundColor = System.Drawing.Color.White;
styleRule1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
new Telerik.Reporting.Drawing.StyleSelector("Title")});
styleRule1.Style.Color = System.Drawing.Color.Black;
styleRule1.Style.Font.Bold = true;
styleRule1.Style.Font.Italic = false;
styleRule1.Style.Font.Name = "Tahoma";
styleRule1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(20D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule1.Style.Font.Strikeout = false;
styleRule1.Style.Font.Underline = false;
styleRule2.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
new Telerik.Reporting.Drawing.StyleSelector("Caption")});
styleRule2.Style.Color = System.Drawing.Color.Black;
styleRule2.Style.Font.Name = "Tahoma";
styleRule2.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule2.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
styleRule3.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
new Telerik.Reporting.Drawing.StyleSelector("Data")});
styleRule3.Style.Font.Name = "Tahoma";
styleRule3.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
styleRule4.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
new Telerik.Reporting.Drawing.StyleSelector("PageInfo")});
styleRule4.Style.Font.Name = "Tahoma";
styleRule4.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule4.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
this.StyleSheet.AddRange(new Telerik.Reporting.Drawing.StyleRule[] {
styleRule1,
styleRule2,
styleRule3,
styleRule4});
this.Width = new Telerik.Reporting.Drawing.Unit(10.499983787536621D, Telerik.Reporting.Drawing.UnitType.Inch);
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
#endregion
private Telerik.Reporting.GroupHeaderSection aRMTIDGroupHeader;
private Telerik.Reporting.GroupFooterSection aRMTIDGroupFooter;
private Telerik.Reporting.Group aRMTIDGroup;
private Telerik.Reporting.PageHeaderSection pageHeader;
private Telerik.Reporting.TextBox reportNameTextBox;
private Telerik.Reporting.PageFooterSection pageFooter;
private Telerik.Reporting.TextBox currentTimeTextBox;
private Telerik.Reporting.DetailSection detail;
private Telerik.Reporting.ReportHeaderSection reportHeaderSection1;
private Telerik.Reporting.TextBox textBox1;
private Telerik.Reporting.TextBox textBox6;
private Telerik.Reporting.TextBox textBox7;
private Telerik.Reporting.Group group1;
private Telerik.Reporting.GroupFooterSection groupFooterSection1;
private Telerik.Reporting.GroupHeaderSection groupHeaderSection1;
private Telerik.Reporting.TextBox textBox11;
private Telerik.Reporting.TextBox textBox3;
private Telerik.Reporting.TextBox textBox5;
private Telerik.Reporting.TextBox textBox14;
private Telerik.Reporting.TextBox txtPeriod4;
private Telerik.Reporting.TextBox textBox13;
private Telerik.Reporting.TextBox textBox15;
private Telerik.Reporting.TextBox textBox17;
}
}
We appreciate the screenshot of the Silverlight viewer, but it would have been good to post screenshot of the PDF as well, so we can compare the differences. As you can see from our previous reply, this is not something we were able to reproduce, so there must be something specific on your end. You can either zip your runnable report and provide us with a link to it on some free file hosting server or open official support ticket where you would be able to attach that file.
Kind regards,
Steve
the Telerik team
http://173.201.184.132/LTsites/ReportARAge.zip
I also attached a screen shot of the PDF.
It seems that you have manually altered the InitializeComponent() method which you're not support to do. Due to this, the code is no longer valid, namely you have a report group which is not added to the Group collection of the report, but its header and footer sections are still added to the report, but in the wrong locations since they're no longer recognized as part of group (see attached screenshot).
Removing those leftovers from the report or creating it from scratch without manual intervention should result in proper rendering in all formats.
Best wishes,
Steve
the Telerik team
If I create a report without the wizard and just center the header, it works.
If I use the wizard and don't add a datasource, it works.
If I just add my datasource and my stored procedure (no wizzard) it works.
Now if I use the wizzard on a new project to add my datasource and stored procedure, centering fails.
Also, I didn't add any groups or anything, just plain display results from wizzard
I don't really need to use the wizzard, I'll just create reports without it. But below is the basic code I got. I even removed all the details and tried it.
Oh and I'm on VS2010 Windows XP
namespace
HeaderTestNoGroup
{
partial
class
Report1
{
#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.StyleRule styleRule1 =
new
Telerik.Reporting.Drawing.StyleRule();
Telerik.Reporting.Drawing.StyleRule styleRule2 =
new
Telerik.Reporting.Drawing.StyleRule();
Telerik.Reporting.Drawing.StyleRule styleRule3 =
new
Telerik.Reporting.Drawing.StyleRule();
Telerik.Reporting.Drawing.StyleRule styleRule4 =
new
Telerik.Reporting.Drawing.StyleRule();
this
.sqlDataSource1 =
new
Telerik.Reporting.SqlDataSource();
this
.labelsGroupHeader =
new
Telerik.Reporting.GroupHeaderSection();
this
.labelsGroupFooter =
new
Telerik.Reporting.GroupFooterSection();
this
.labelsGroup =
new
Telerik.Reporting.Group();
this
.pageHeader =
new
Telerik.Reporting.PageHeaderSection();
this
.reportNameTextBox =
new
Telerik.Reporting.TextBox();
this
.pageFooter =
new
Telerik.Reporting.PageFooterSection();
this
.currentTimeTextBox =
new
Telerik.Reporting.TextBox();
this
.pageInfoTextBox =
new
Telerik.Reporting.TextBox();
this
.reportHeader =
new
Telerik.Reporting.ReportHeaderSection();
this
.titleTextBox =
new
Telerik.Reporting.TextBox();
this
.detail =
new
Telerik.Reporting.DetailSection();
((System.ComponentModel.ISupportInitialize)(
this
)).BeginInit();
//
// sqlDataSource1
//
this
.sqlDataSource1.ConnectionString =
"HeaderTestNoGroup.Properties.Settings.NQDemo"
;
this
.sqlDataSource1.Name =
"sqlDataSource1"
;
this
.sqlDataSource1.Parameters.AddRange(
new
Telerik.Reporting.SqlDataSourceParameter[] {
new
Telerik.Reporting.SqlDataSourceParameter(
"@compareDate"
, System.Data.DbType.DateTime,
null
),
new
Telerik.Reporting.SqlDataSourceParameter(
"@dayOrMonth"
, System.Data.DbType.AnsiString,
null
),
new
Telerik.Reporting.SqlDataSourceParameter(
"@Period1"
, System.Data.DbType.Int32,
null
),
new
Telerik.Reporting.SqlDataSourceParameter(
"@Period2"
, System.Data.DbType.Int32,
null
),
new
Telerik.Reporting.SqlDataSourceParameter(
"@Period3"
, System.Data.DbType.Int32,
null
)});
this
.sqlDataSource1.SelectCommand =
"RepARAging"
;
this
.sqlDataSource1.SelectCommandType = Telerik.Reporting.SqlDataSourceCommandType.StoredProcedure;
//
// labelsGroupHeader
//
this
.labelsGroupHeader.Height =
new
Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.labelsGroupHeader.Name =
"labelsGroupHeader"
;
this
.labelsGroupHeader.PrintOnEveryPage =
true
;
//
// labelsGroupFooter
//
this
.labelsGroupFooter.Height =
new
Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.labelsGroupFooter.Name =
"labelsGroupFooter"
;
this
.labelsGroupFooter.Style.Visible =
false
;
//
// labelsGroup
//
this
.labelsGroup.GroupFooter =
this
.labelsGroupFooter;
this
.labelsGroup.GroupHeader =
this
.labelsGroupHeader;
this
.labelsGroup.Name =
"labelsGroup"
;
//
// pageHeader
//
this
.pageHeader.Height =
new
Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.pageHeader.Items.AddRange(
new
Telerik.Reporting.ReportItemBase[] {
this
.reportNameTextBox});
this
.pageHeader.Name =
"pageHeader"
;
//
// reportNameTextBox
//
this
.reportNameTextBox.Location =
new
Telerik.Reporting.Drawing.PointU(
new
Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.reportNameTextBox.Name =
"reportNameTextBox"
;
this
.reportNameTextBox.Size =
new
Telerik.Reporting.Drawing.SizeU(
new
Telerik.Reporting.Drawing.Unit(6.4166665077209473D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.20000000298023224D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.reportNameTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
this
.reportNameTextBox.StyleName =
"PageInfo"
;
this
.reportNameTextBox.Value =
"CenterMe"
;
//
// pageFooter
//
this
.pageFooter.Height =
new
Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.pageFooter.Items.AddRange(
new
Telerik.Reporting.ReportItemBase[] {
this
.currentTimeTextBox,
this
.pageInfoTextBox});
this
.pageFooter.Name =
"pageFooter"
;
//
// currentTimeTextBox
//
this
.currentTimeTextBox.Location =
new
Telerik.Reporting.Drawing.PointU(
new
Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.currentTimeTextBox.Name =
"currentTimeTextBox"
;
this
.currentTimeTextBox.Size =
new
Telerik.Reporting.Drawing.SizeU(
new
Telerik.Reporting.Drawing.Unit(3.1979167461395264D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.20000000298023224D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.currentTimeTextBox.StyleName =
"PageInfo"
;
this
.currentTimeTextBox.Value =
"=NOW()"
;
//
// pageInfoTextBox
//
this
.pageInfoTextBox.Location =
new
Telerik.Reporting.Drawing.PointU(
new
Telerik.Reporting.Drawing.Unit(3.2395832538604736D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.02083333395421505D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.pageInfoTextBox.Name =
"pageInfoTextBox"
;
this
.pageInfoTextBox.Size =
new
Telerik.Reporting.Drawing.SizeU(
new
Telerik.Reporting.Drawing.Unit(3.1979167461395264D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.20000000298023224D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.pageInfoTextBox.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
this
.pageInfoTextBox.StyleName =
"PageInfo"
;
this
.pageInfoTextBox.Value =
"=PageNumber"
;
//
// reportHeader
//
this
.reportHeader.Height =
new
Telerik.Reporting.Drawing.Unit(0.80823493003845215D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.reportHeader.Items.AddRange(
new
Telerik.Reporting.ReportItemBase[] {
this
.titleTextBox});
this
.reportHeader.Name =
"reportHeader"
;
//
// titleTextBox
//
this
.titleTextBox.Location =
new
Telerik.Reporting.Drawing.PointU(
new
Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.titleTextBox.Name =
"titleTextBox"
;
this
.titleTextBox.Size =
new
Telerik.Reporting.Drawing.SizeU(
new
Telerik.Reporting.Drawing.Unit(6.4583334922790527D, Telerik.Reporting.Drawing.UnitType.Inch),
new
Telerik.Reporting.Drawing.Unit(0.78740161657333374D, Telerik.Reporting.Drawing.UnitType.Inch));
this
.titleTextBox.StyleName =
"Title"
;
this
.titleTextBox.Value =
"Report1"
;
//
// detail
//
this
.detail.Height =
new
Telerik.Reporting.Drawing.Unit(0.28125D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.detail.Name =
"detail"
;
//
// Report1
//
this
.DataSource =
this
.sqlDataSource1;
this
.Groups.AddRange(
new
Telerik.Reporting.Group[] {
this
.labelsGroup});
this
.Items.AddRange(
new
Telerik.Reporting.ReportItemBase[] {
this
.labelsGroupHeader,
this
.labelsGroupFooter,
this
.pageHeader,
this
.pageFooter,
this
.reportHeader,
this
.detail});
this
.PageSettings.Landscape =
false
;
this
.PageSettings.Margins.Bottom =
new
Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.PageSettings.Margins.Left =
new
Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.PageSettings.Margins.Right =
new
Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.PageSettings.Margins.Top =
new
Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Inch);
this
.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
this
.Style.BackgroundColor = System.Drawing.Color.White;
styleRule1.Selectors.AddRange(
new
Telerik.Reporting.Drawing.ISelector[] {
new
Telerik.Reporting.Drawing.StyleSelector(
"Title"
)});
styleRule1.Style.Color = System.Drawing.Color.Black;
styleRule1.Style.Font.Bold =
true
;
styleRule1.Style.Font.Italic =
false
;
styleRule1.Style.Font.Name =
"Tahoma"
;
styleRule1.Style.Font.Size =
new
Telerik.Reporting.Drawing.Unit(20D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule1.Style.Font.Strikeout =
false
;
styleRule1.Style.Font.Underline =
false
;
styleRule2.Selectors.AddRange(
new
Telerik.Reporting.Drawing.ISelector[] {
new
Telerik.Reporting.Drawing.StyleSelector(
"Caption"
)});
styleRule2.Style.Color = System.Drawing.Color.Black;
styleRule2.Style.Font.Name =
"Tahoma"
;
styleRule2.Style.Font.Size =
new
Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule2.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
styleRule3.Selectors.AddRange(
new
Telerik.Reporting.Drawing.ISelector[] {
new
Telerik.Reporting.Drawing.StyleSelector(
"Data"
)});
styleRule3.Style.Font.Name =
"Tahoma"
;
styleRule3.Style.Font.Size =
new
Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
styleRule4.Selectors.AddRange(
new
Telerik.Reporting.Drawing.ISelector[] {
new
Telerik.Reporting.Drawing.StyleSelector(
"PageInfo"
)});
styleRule4.Style.Font.Name =
"Tahoma"
;
styleRule4.Style.Font.Size =
new
Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
styleRule4.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
this
.StyleSheet.AddRange(
new
Telerik.Reporting.Drawing.StyleRule[] {
styleRule1,
styleRule2,
styleRule3,
styleRule4});
this
.Width =
new
Telerik.Reporting.Drawing.Unit(6.4583334922790527D, Telerik.Reporting.Drawing.UnitType.Inch);
((System.ComponentModel.ISupportInitialize)(
this
)).EndInit();
}
#endregion
private
Telerik.Reporting.SqlDataSource sqlDataSource1;
private
Telerik.Reporting.GroupHeaderSection labelsGroupHeader;
private
Telerik.Reporting.GroupFooterSection labelsGroupFooter;
private
Telerik.Reporting.Group labelsGroup;
private
Telerik.Reporting.PageHeaderSection pageHeader;
private
Telerik.Reporting.TextBox reportNameTextBox;
private
Telerik.Reporting.PageFooterSection pageFooter;
private
Telerik.Reporting.TextBox currentTimeTextBox;
private
Telerik.Reporting.TextBox pageInfoTextBox;
private
Telerik.Reporting.ReportHeaderSection reportHeader;
private
Telerik.Reporting.TextBox titleTextBox;
private
Telerik.Reporting.DetailSection detail;
}
}
I've modified the report you have send us with the changes described in previous post and bound it to the AdventureWorks database since you state it might be related. However as you can see from the attached movie, the problem does not surface on our end. We would appreciate if you provide us with a report that exhibits the problem.
Best wishes,
Steve
the Telerik team
and I have to reports you can try: HeaderTestNoGroup.Report1, HeaderTestNoGroup and ReportARAgeTest.ARAgeRep, ReportARAgeTest . Below is a sample of the code I use to call it. And I've attached a picture.
<my:ReportViewer Margin="0 3 0 0"
Name="repViewer" Height="450" />
public ReportWindow(string vars, string report)
{
InitializeComponent();
inVariables = vars;
repViewer.ReportServiceUri =
new Uri("http://173.201.184.132/WebsiteReports/ReportService.svc");
repViewer.Report = report;
reportName = report;
this.repViewer.RenderBegin += new Telerik.ReportViewer.Silverlight.RenderBeginEventHandler(repViewer_RenderBegin);
}
void repViewer_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
{
string[] pvs = inVariables.Split('\t');
for (int i = 0; i < pvs.Length-1; i++)
{
args.ParameterValues[pvs[i]] = pvs[i+1];
i++;
}
}
 
 
RadWindow rwWindow= new RadWindow();
rwWindow.Header =
"ARAge diff win";
rwWindow.Height = 550;
rwWindow.Width = 800;
//rwWindow.Content =
new ReportWindow(allParams, "HeaderTestNoGroup.Report1, HeaderTestNoGroup");
rwWindow.Content =
new ReportWindow(allParams, "ReportARAgeTest.ARAgeRep, ReportARAgeTest");
rwWindow.Show();
You already have a runnable sample at your disposal - the Visual Studio examples we install along with the product. You can use the Silverlight application to compare with your project and identify the differences.
All the best,
Steve
the Telerik team