Add Textbox on PageHeader

3 posts, 0 answers
  1. Pauline
    Pauline avatar
    2 posts
    Member since:
    Sep 2013

    Posted 02 Oct 2014 Link to this post

    Hi

    I am trying to build a report programmatically. In this report I try to add a textbox on PageHeader.
    But the report is still empty. 

    I search solution in forum, but I didn't see someone needing help to this problem.

    This is a part of what I did, it might be something wrong, I dont know.

    Panel PanelMonth = Construct_Panel("PanelMonth", this.Width.Value, 0.2, 0, 0);
    TextBox LblMonth= Construct_TextBox("LblMonth", this.Width.Value, 0.2, 0, 0, " October");
    PanelMonth.Items.Add(LblMonth);
    this.pageHeaderSection1.Items.Add(PanelMonth);

    Please, can you help me, thanks in advance

    Paul S.

  2. Hinata
    Hinata avatar
    146 posts
    Member since:
    Dec 2013

    Posted 06 Oct 2014 in reply to Pauline Link to this post

    Hi Paul,

    The provided code is not full. The issue might lie in the construct methods. My advice is to design the same report within the VS report designer. Then look at the automatically generated code in the Report.Designer.cs file. This way you can learn how to build reports programmatically.
  3. Pauline
    Pauline avatar
    2 posts
    Member since:
    Sep 2013

    Posted 07 Oct 2014 in reply to Hinata Link to this post

    Hi Hardik,

    OK, I will try to use the designer.

    Thanks
    Paul S.
Back to Top