I have this code:
report.Info.Title = "Recycling Customer List"
section.PageAlignment.Horizontal = Infragistics.Documents.Report.Alignment.Center
Dim header As ISectionHeader = section.AddHeader()
header.Height = 30
header.Repeat = True
report.Publish(sfd.FileName.Trim, FileFormat.PDF)
it centers the grid just fine, but the header is still left alined. How do I center the header?
You will need to set the alignment on the header's content in order to accomplish this, such as:
Dim text As IText = header.AddText(0,0)
text.Alignment.Horizontal = Alignment.Center
text.AddContant("Customer List")
-Matt