This is a migrated thread and some comments may be shown as answers.

Add Textbox on PageHeader

2 Answers 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pauline
Top achievements
Rank 1
Pauline asked on 02 Oct 2014, 07:21 AM
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 Answers, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 06 Oct 2014, 02:27 PM
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.
0
Pauline
Top achievements
Rank 1
answered on 07 Oct 2014, 02:51 PM
Hi Hardik,

OK, I will try to use the designer.

Thanks
Paul S.
Tags
General Discussions
Asked by
Pauline
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Pauline
Top achievements
Rank 1
Share this question
or