I want the date/time on the left and the copyright mess on the right in the same footer.
I tried doing 2 AddText, one for the right side and one for the left, but only the last one shows up. (code below)
Is there some magic that I'm missing?
thanks,
Gene
>>>>>>>>>>>>>>
Infragistics.Documents.Report.Section.ISectionFooter sectionFooter = section.AddFooter(); sectionFooter.Repeat = true; sectionFooter.Height = 30; // add the text. this will be the in the lower right Infragistics.Documents.Report.Text.IText sectionFooterText = sectionFooter.AddText(0, 0); sectionFooterText.Paddings.All = 10; sectionFooterText.Alignment = new TextAlignment(Alignment.Right, Alignment.Middle); sectionFooterText.Height = new RelativeHeight(100); sectionFooterText.Background = new Background(Infragistics.Documents.Graphics.Brushes.SteelBlue); sectionFooterText.AddContent(text); sectionFooterText. // add the date/Time. this will be the in the lower left Infragistics.Documents.Report.Text.IText dtFooterText = sectionFooter.AddText(0, 0); dtFooterText.Paddings.All = 10; dtFooterText.Alignment = new TextAlignment(Alignment.Left, Alignment.Middle); dtFooterText.Height = new RelativeHeight(100); dtFooterText.Background = new Background(Infragistics.Documents.Graphics.Brushes.SteelBlue); dtFooterText.AddContent(DateTime.Now.ToString("f"));
Thank you Matt. I was able to get it to look right thu trial and error.
maybe later, I'll try the table method since that seems less likely to break. <hehe>
thank you again,
This is because you're adding the text to the same area in the footer each time at (0,0). You need to calculate roughly where you want the text to be in the footer, I believe. Otherwise, another solution might be to add a table to the footer with two columns, have the table's width fit the page, then set the individual alignment of each text element within each cell of the table.
-Matt